Merge pull request #672 from citibeth/efischer/160327-GEOSPython3
[WIP] GEOS Python extension did not compile with Python3.
This commit is contained in:
commit
c017387214
1 changed files with 20 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
||||||
from spack import *
|
from spack import *
|
||||||
|
import os
|
||||||
|
|
||||||
class Geos(Package):
|
class Geos(Package):
|
||||||
"""GEOS (Geometry Engine - Open Source) is a C++ port of the Java
|
"""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/"
|
homepage = "http://trac.osgeo.org/geos/"
|
||||||
url = "http://download.osgeo.org/geos/geos-3.4.2.tar.bz2"
|
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.2', 'fc5df2d926eb7e67f988a43a92683bae')
|
||||||
version('3.4.1', '4c930dec44c45c49cd71f3e0931ded7e')
|
version('3.4.1', '4c930dec44c45c49cd71f3e0931ded7e')
|
||||||
version('3.4.0', 'e41318fc76b5dc764a69d43ac6b18488')
|
version('3.4.0', 'e41318fc76b5dc764a69d43ac6b18488')
|
||||||
|
@ -21,11 +26,22 @@ class Geos(Package):
|
||||||
version('3.3.4', '1bb9f14d57ef06ffa41cb1d67acb55a1')
|
version('3.3.4', '1bb9f14d57ef06ffa41cb1d67acb55a1')
|
||||||
version('3.3.3', '8454e653d7ecca475153cc88fd1daa26')
|
version('3.3.3', '8454e653d7ecca475153cc88fd1daa26')
|
||||||
|
|
||||||
extends('python')
|
# # Python3 is not supported.
|
||||||
depends_on('swig')
|
# 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):
|
def install(self, spec, prefix):
|
||||||
configure("--prefix=%s" % prefix,
|
args = ["--prefix=%s" % prefix]
|
||||||
"--enable-python")
|
# 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()
|
||||||
make("install")
|
make("install")
|
||||||
|
|
Loading…
Reference in a new issue