diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2021-02-26 03:41:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-26 10:41:14 +0100 |
commit | 7cfde8f5140f5d9907c81aff81688395a253a2d8 (patch) | |
tree | edeb85a023fdb1d90bdc3a3ede07610433881672 /var | |
parent | b4520676dd3ad54b5b45baacc90b04cc4faa3d2f (diff) | |
download | spack-7cfde8f5140f5d9907c81aff81688395a253a2d8.tar.gz spack-7cfde8f5140f5d9907c81aff81688395a253a2d8.tar.bz2 spack-7cfde8f5140f5d9907c81aff81688395a253a2d8.tar.xz spack-7cfde8f5140f5d9907c81aff81688395a253a2d8.zip |
py-xarray: add new variant 'io' (#21945)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-xarray/package.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-xarray/package.py b/var/spack/repos/builtin/packages/py-xarray/package.py index 77af540a0c..37907a5df6 100644 --- a/var/spack/repos/builtin/packages/py-xarray/package.py +++ b/var/spack/repos/builtin/packages/py-xarray/package.py @@ -25,6 +25,8 @@ class PyXarray(PythonPackage): version('0.11.0', sha256='636964baccfca0e5d69220ac4ecb948d561addc76f47704064dcbe399e03a818') version('0.9.1', sha256='89772ed0e23f0e71c3fb8323746374999ecbe79c113e3fadc7ae6374e6dc0525') + variant('io', default=False, description='Build io backends') + depends_on('python@2.7:2.8,3.5:', when='@0.11:', type=('build', 'run')) depends_on('python@3.5:', when='@0.12', type=('build', 'run')) depends_on('python@3.5.3:', when='@0.13', type=('build', 'run')) @@ -43,3 +45,13 @@ class PyXarray(PythonPackage): depends_on('py-numpy@1.12:', when='@0.11:0.13', type=('build', 'run')) depends_on('py-numpy@1.14:', when='@0.14.0', type=('build', 'run')) depends_on('py-numpy@1.15:', when='@0.15:', type=('build', 'run')) + + depends_on('py-netcdf4', when='+io', type=('build', 'run')) + depends_on('py-h5netcdf', when='+io', type=('build', 'run')) + depends_on('py-scipy', when='+io', type=('build', 'run')) + depends_on('py-pydap', when='+io', type=('build', 'run')) + depends_on('py-zarr', when='+io', type=('build', 'run')) + depends_on('py-fsspec', when='+io', type=('build', 'run')) + depends_on('py-cftime', when='+io', type=('build', 'run')) + depends_on('py-rasterio', when='+io', type=('build', 'run')) + depends_on('py-cfgrib', when='+io', type=('build', 'run')) |