From 75f34126fcbd44149ea9784ed29e3f6a1026685c Mon Sep 17 00:00:00 2001 From: Simon Pintarelli <1237199+simonpintarelli@users.noreply.github.com> Date: Sat, 1 Aug 2020 23:26:41 +0200 Subject: h5py does not correctly recognize hdf5 version on Cray (#17831) * h5py: explicitly specify version hdf5@1.10.5 on Cray is wrongly detected as 1.8.4. * Update var/spack/repos/builtin/packages/py-h5py/package.py Thanks. Also had this first, then CI was complaining about line length ... Co-authored-by: Adam J. Stewart Co-authored-by: Adam J. Stewart --- var/spack/repos/builtin/packages/py-h5py/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-h5py/package.py b/var/spack/repos/builtin/packages/py-h5py/package.py index e652849fd1..2b7d34cc4b 100644 --- a/var/spack/repos/builtin/packages/py-h5py/package.py +++ b/var/spack/repos/builtin/packages/py-h5py/package.py @@ -49,7 +49,8 @@ class PyH5py(PythonPackage): phases = ['configure', 'install'] def configure(self, spec, prefix): - self.setup_py('configure', '--hdf5={0}'.format(spec['hdf5'].prefix)) + self.setup_py('configure', '--hdf5={0}'.format(spec['hdf5'].prefix), + '--hdf5-version={0}'.format(spec['hdf5'].version)) if '+mpi' in spec: env['CC'] = spec['mpi'].mpicc -- cgit v1.2.3-70-g09d2