diff options
author | MichaelLaufer <70094649+MichaelLaufer@users.noreply.github.com> | 2021-09-29 16:21:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 08:21:16 -0500 |
commit | ed54d6c9268abeda97062011f29e3f7de807d48b (patch) | |
tree | ff7a6bf6102cedca0f3021a722167bbae2dd9441 /var | |
parent | 634b0b25c4a086209fa02e7a0bbec58c3a28096d (diff) | |
download | spack-ed54d6c9268abeda97062011f29e3f7de807d48b.tar.gz spack-ed54d6c9268abeda97062011f29e3f7de807d48b.tar.bz2 spack-ed54d6c9268abeda97062011f29e3f7de807d48b.tar.xz spack-ed54d6c9268abeda97062011f29e3f7de807d48b.zip |
py-netcdf4: adds parallel IO support (#26178)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-netcdf4/package.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/py-netcdf4/package.py b/var/spack/repos/builtin/packages/py-netcdf4/package.py index 81a7f538de..d849b9d4d8 100644 --- a/var/spack/repos/builtin/packages/py-netcdf4/package.py +++ b/var/spack/repos/builtin/packages/py-netcdf4/package.py @@ -18,15 +18,20 @@ class PyNetcdf4(PythonPackage): version('1.4.2', sha256='b934af350459cf9041bcdf5472e2aa56ed7321c018d918e9f325ec9a1f9d1a30') version('1.2.7', sha256='0c449b60183ee06238a8f9a75de7b0eed3acaa7a374952ff9f1ff06beb8f94ba') version('1.2.3.1', sha256='55edd74ef9aabb1f7d1ea3ffbab9c555da2a95632a97f91c0242281dc5eb919f') + variant("mpi", default=True, description="Parallel IO support") depends_on('py-setuptools', type='build') depends_on('py-cython@0.19:', type='build') depends_on('py-numpy@1.7:', type=('build', 'run')) depends_on('py-cftime', type=('build', 'run')) + depends_on('py-mpi4py', when='+mpi', type=('build', 'run')) - depends_on('netcdf-c') - depends_on('hdf5@1.8.0:+hl') + depends_on('netcdf-c', when='-mpi') + depends_on('netcdf-c+mpi', when='+mpi') + + depends_on('hdf5@1.8.0:+hl', when='-mpi') + depends_on('hdf5@1.8.0:+hl+mpi', when='+mpi') # The installation script tries to find hdf5 using pkg-config. However, the # version of hdf5 installed with Spack does not have pkg-config files. |