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 <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Simon Pintarelli 2020-08-01 23:26:41 +02:00 committed by GitHub
parent b0eb771b19
commit 75f34126fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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