py-pil: Protect against building with Python3. (#1868)

* py-pil: Does not build with Python3.

* Set py-pillow to be the default pil provider

* Update package.py

* Change to comments requested by adamjstewart

* Remove version constraint from extends(), avoid a Spack bug.
This commit is contained in:
Elizabeth Fischer 2016-09-28 16:51:41 -04:00 committed by Todd Gamblin
parent 4040792501
commit 3352889d73
2 changed files with 4 additions and 0 deletions

View File

@ -19,3 +19,4 @@ packages:
mpi: [openmpi, mpich]
blas: [openblas]
lapack: [openblas]
pil: [py-pillow]

View File

@ -37,7 +37,10 @@ class PyPil(Package):
provides('pil')
# py-pil currently only works with Python2.
# If you are using Python 3, try using py-pillow instead.
extends('python')
depends_on('python@1.5.2:2.8')
def install(self, spec, prefix):
python('setup.py', 'install', '--prefix=%s' % prefix)