Skip to content
Snippets Groups Projects
Commit 3352889d authored by Elizabeth Fischer's avatar Elizabeth Fischer Committed by Todd Gamblin
Browse files

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.
parent 40407925
Branches
Tags
No related merge requests found
...@@ -19,3 +19,4 @@ packages: ...@@ -19,3 +19,4 @@ packages:
mpi: [openmpi, mpich] mpi: [openmpi, mpich]
blas: [openblas] blas: [openblas]
lapack: [openblas] lapack: [openblas]
pil: [py-pillow]
...@@ -37,7 +37,10 @@ class PyPil(Package): ...@@ -37,7 +37,10 @@ class PyPil(Package):
provides('pil') provides('pil')
# py-pil currently only works with Python2.
# If you are using Python 3, try using py-pillow instead.
extends('python') extends('python')
depends_on('python@1.5.2:2.8')
def install(self, spec, prefix): def install(self, spec, prefix):
python('setup.py', 'install', '--prefix=%s' % prefix) python('setup.py', 'install', '--prefix=%s' % prefix)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment