diff options
author | Elizabeth F <rpf2116@columbia.edu> | 2016-03-27 18:27:06 -0400 |
---|---|---|
committer | citibeth <rpf2116@columbia.edu> | 2016-03-27 18:28:51 -0400 |
commit | 3bd550d6a2ceb279743aae626c6a3a614519d2f5 (patch) | |
tree | 8a80e0fea4c3cc16ca3e1d8c222ce3ca181c5216 | |
parent | 82c09e66d22933303f4284713f5daf464d733975 (diff) | |
download | spack-3bd550d6a2ceb279743aae626c6a3a614519d2f5.tar.gz spack-3bd550d6a2ceb279743aae626c6a3a614519d2f5.tar.bz2 spack-3bd550d6a2ceb279743aae626c6a3a614519d2f5.tar.xz spack-3bd550d6a2ceb279743aae626c6a3a614519d2f5.zip |
GEOS Python extension did not compile with Python3.
-rw-r--r-- | var/spack/repos/builtin/packages/geos/package.py | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/geos/package.py b/var/spack/repos/builtin/packages/geos/package.py index 4a2657e32f..030703f286 100644 --- a/var/spack/repos/builtin/packages/geos/package.py +++ b/var/spack/repos/builtin/packages/geos/package.py @@ -1,4 +1,5 @@ from spack import * +import os class Geos(Package): """GEOS (Geometry Engine - Open Source) is a C++ port of the Java @@ -10,6 +11,10 @@ class Geos(Package): homepage = "http://trac.osgeo.org/geos/" url = "http://download.osgeo.org/geos/geos-3.4.2.tar.bz2" + # Verison 3.5.0 supports Autotools and CMake + version('3.5.0', '136842690be7f504fba46b3c539438dd') + + # Versions through 3.4.2 have CMake, but only Autotools is supported version('3.4.2', 'fc5df2d926eb7e67f988a43a92683bae') version('3.4.1', '4c930dec44c45c49cd71f3e0931ded7e') version('3.4.0', 'e41318fc76b5dc764a69d43ac6b18488') @@ -21,11 +26,22 @@ class Geos(Package): version('3.3.4', '1bb9f14d57ef06ffa41cb1d67acb55a1') version('3.3.3', '8454e653d7ecca475153cc88fd1daa26') - extends('python') - depends_on('swig') +# # Python3 is not supported. +# variant('python', default=False, description='Enable Python support') + +# extends('python', when='+python') +# depends_on('python', when='+python') +# depends_on('swig', when='+python') def install(self, spec, prefix): - configure("--prefix=%s" % prefix, - "--enable-python") + args = ["--prefix=%s" % prefix] +# if '+python' in spec: +# os.environ['PYTHON'] = join_path(spec['python'].prefix, 'bin', +# 'python' if spec['python'].version[:1][0] <= 2 else 'python3') +# os.environ['SWIG'] = join_path(spec['swig'].prefix, 'bin', 'swig') +# +# args.append("--enable-python") + + configure(*args) make() make("install") |