diff options
author | Sergey Kosukhin <sergey.kosukhin@mpimet.mpg.de> | 2022-10-09 18:38:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-09 11:38:54 -0500 |
commit | c60dffaea75b72a03a753511cc6ae3ac3e792e9f (patch) | |
tree | 90c5aafa1b5a587ce9838e058404fe36bc306e2a | |
parent | 17898a61dd535ee3baf050ee4e3cc20e7a32bc89 (diff) | |
download | spack-c60dffaea75b72a03a753511cc6ae3ac3e792e9f.tar.gz spack-c60dffaea75b72a03a753511cc6ae3ac3e792e9f.tar.bz2 spack-c60dffaea75b72a03a753511cc6ae3ac3e792e9f.tar.xz spack-c60dffaea75b72a03a753511cc6ae3ac3e792e9f.zip |
py-cdo: add version 1.5.6, deprecate 1.3.2 (#32793)
* py-cdo: add version 1.5.6
* py-cdo: make python run depdendencies also the build ones
* py-cdo: restrict Python version
-rw-r--r-- | var/spack/repos/builtin/packages/py-cdo/package.py | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/py-cdo/package.py b/var/spack/repos/builtin/packages/py-cdo/package.py index 5e94b61091..d7df0d0e7c 100644 --- a/var/spack/repos/builtin/packages/py-cdo/package.py +++ b/var/spack/repos/builtin/packages/py-cdo/package.py @@ -12,10 +12,23 @@ class PyCdo(PythonPackage): pypi = "cdo/cdo-1.3.2.tar.gz" - version("1.3.2", sha256="9f78879d90d14134f2320565016d0d371b7dfe7ec71110fd313868ec1db34aee") + maintainers = ["Try2Code", "skosukhin"] - depends_on("cdo") + version("1.5.6", sha256="fec1a75382f01b3c9c368e8f143d98b12323e06975663f87d9b60c739ae1d335") + version( + "1.3.2", + sha256="9f78879d90d14134f2320565016d0d371b7dfe7ec71110fd313868ec1db34aee", + deprecated=True, + ) + + depends_on("python@2.7:", type=("build", "run")) depends_on("py-setuptools", type="build") - depends_on("py-scipy", type=("build", "run")) + depends_on("cdo+netcdf", type="run") depends_on("py-netcdf4", type=("build", "run")) + depends_on("py-scipy", type=("build", "run"), when="@:1.4") + depends_on("py-xarray", type=("build", "run"), when="@1.3.4:") + depends_on("py-six", type=("build", "run"), when="@1.3.3:") + + def setup_run_environment(self, env): + env.set("CDO", self.spec["cdo"].prefix.bin.cdo) |