diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2021-07-19 05:52:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 12:52:02 +0200 |
commit | 29c7542c48409c5d4f4a73400495d5d9a82f49a0 (patch) | |
tree | fde2cab95d2bddb6b808e0db380743cdf1089423 /var | |
parent | 3f9a5eda16f8e9fdedc545e8443d69dd65d1157e (diff) | |
download | spack-29c7542c48409c5d4f4a73400495d5d9a82f49a0.tar.gz spack-29c7542c48409c5d4f4a73400495d5d9a82f49a0.tar.bz2 spack-29c7542c48409c5d4f4a73400495d5d9a82f49a0.tar.xz spack-29c7542c48409c5d4f4a73400495d5d9a82f49a0.zip |
py-pyproj: add new versions (#24893)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-pyproj/package.py | 50 |
1 files changed, 36 insertions, 14 deletions
diff --git a/var/spack/repos/builtin/packages/py-pyproj/package.py b/var/spack/repos/builtin/packages/py-pyproj/package.py index c7f00b4fc7..01dc4cccdf 100644 --- a/var/spack/repos/builtin/packages/py-pyproj/package.py +++ b/var/spack/repos/builtin/packages/py-pyproj/package.py @@ -7,7 +7,8 @@ from spack import * class PyPyproj(PythonPackage): - """Python interface to the PROJ.4 Library.""" + """Python interface to PROJ (cartographic projections and + coordinate transformations library).""" homepage = "https://github.com/pyproj4/pyproj" pypi = "pyproj/pyproj-2.2.0.tar.gz" @@ -15,23 +16,44 @@ class PyPyproj(PythonPackage): maintainers = ['citibeth', 'adamjstewart'] + version('3.1.0', sha256='67b94f4e694ae33fc90dfb7da0e6b5ed5f671dd0acc2f6cf46e9c39d56e16e1a') + version('3.0.1', sha256='bfbac35490dd17f706700673506eeb8170f8a2a63fb5878171d4e6eef242d141') + version('3.0.0', sha256='539e320d06e5441edadad2e2ab276e1877445eca384fc1c056b5501453d433c2') + version('2.6.1', sha256='52556f245f1112f121091937b47738d1fbcbd0f13be6fb32689de31ab0975d24') version('2.6.0', sha256='977542d2f8cf2981cf3ad72cedfebcd6ac56977c7aa830d9b49fa7888b56e83d') version('2.2.0', sha256='0a4f793cc93539c2292638c498e24422a2ec4b25cb47545addea07724b2a56e5') version('2.1.3', sha256='99c52788b01a7bb9a88024bf4d40965c0a66a93d654600b5deacf644775f424d') - version('1.9.6', sha256='e0c02b1554b20c710d16d673817b2a89ff94738b0b537aead8ecb2edc4c4487b') - version('1.9.5.1', sha256='53fa54c8fa8a1dfcd6af4bf09ce1aae5d4d949da63b90570ac5ec849efaf3ea8') - - depends_on('python@:2', when='@:1.9.5.1') - depends_on('python@3:', when='@2.3:') - depends_on('python@3.5:', when='@2.6.0:') - depends_on('py-setuptools', type='build') - depends_on('py-cython', type='build') - depends_on('py-cython@0.28:', when='@2.6.0:') - depends_on('py-aenum', type=('build', 'run'), when='@2.2:^python@:3.5') + version('1.9.6', sha256='e0c02b1554b20c710d16d673817b2a89ff94738b0b537aead8ecb2edc4c4487b', deprecated=True) + version('1.9.5.1', sha256='53fa54c8fa8a1dfcd6af4bf09ce1aae5d4d949da63b90570ac5ec849efaf3ea8', deprecated=True) + + # In setup.cfg and setup.py + depends_on('python@3.7:', when='@3.1:', type=('build', 'link', 'run')) + depends_on('python@3.6:', when='@3.0:', type=('build', 'link', 'run')) + depends_on('python@3.5:', when='@2.3:', type=('build', 'link', 'run')) + depends_on('python@2.7:2.8,3.5:', when='@2.2:', type=('build', 'link', 'run')) + depends_on('python@2.6:2.8,3.3:', type=('build', 'link', 'run')) + + # In setup.py + # https://pyproj4.github.io/pyproj/stable/installation.html#installing-from-source depends_on('proj') - depends_on('proj@:5', when='@:1') - depends_on('proj@6.1:', when='@2.2:') - depends_on('proj@6.0:', when='@2.0:') + depends_on('proj@7.2:', when='@3.0.1:') + depends_on('proj@7.2.0:7.2.999', when='@3.0.0') + depends_on('proj@6.2:7.0', when='@2.4:2.6') + depends_on('proj@6.1:7.0', when='@2.2:2.3') + depends_on('proj@6.0:6.999', when='@2.0:2.1') + depends_on('proj@:5.2', when='@:1.9') + + # In setup.py + depends_on('py-setuptools', type='build') + depends_on('py-certifi', when='@3.0:', type=('build', 'run')) + depends_on('py-aenum', when='@2.2.0:2.2.999 ^python@:3.5.999', type=('build', 'run')) + + # In pyproject.toml + depends_on('py-cython@0.28.4:', when='@2.0:') def setup_build_environment(self, env): + # https://pyproj4.github.io/pyproj/stable/installation.html#pyproj-build-environment-variables + env.set('PROJ_VERSION', self.spec['proj'].version) env.set('PROJ_DIR', self.spec['proj'].prefix) + env.set('PROJ_LIBDIR', self.spec['proj'].libs.directories[0]) + env.set('PROJ_INCDIR', self.spec['proj'].headers.directories[0]) |