summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth R. Johnson <johnsonsr@ornl.gov>2023-01-26 01:28:39 -0500
committerGitHub <noreply@github.com>2023-01-26 07:28:39 +0100
commit682ffd30ac156792a948eb897e4a36e15413727f (patch)
tree76a7b48b91b1487c5a050c925b37992e6528c2c4
parentaf3dba8db64428c6aad78ec7838918d8494a2224 (diff)
downloadspack-682ffd30ac156792a948eb897e4a36e15413727f.tar.gz
spack-682ffd30ac156792a948eb897e4a36e15413727f.tar.bz2
spack-682ffd30ac156792a948eb897e4a36e15413727f.tar.xz
spack-682ffd30ac156792a948eb897e4a36e15413727f.zip
p5-h5py: restrict python version based on import bugs (#35166)
``` File ".../spack/var/spack/environments/scale-mpi/.spack-env/._view/4yiorsdd4pefrnwgrwlwt3yzo5i235il/lib/python3.10/site-packages/h5py/_hl/base.py", line 19, in <module> from collections import (Mapping, MutableMapping, KeysView, ImportError: cannot import name 'Mapping' from 'collections' (.../spack/var/spack/environments/scale-mpi/.spack-env/._view/4yiorsdd4pefrnwgrwlwt3yzo5i235il/lib/python3.10/collections/__init__.py) ``` Fixed in https://github.com/h5py/h5py/pull/1069 which was first merged in v2.9.
-rw-r--r--var/spack/repos/builtin/packages/py-h5py/package.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-h5py/package.py b/var/spack/repos/builtin/packages/py-h5py/package.py
index 0906869131..0782c6977e 100644
--- a/var/spack/repos/builtin/packages/py-h5py/package.py
+++ b/var/spack/repos/builtin/packages/py-h5py/package.py
@@ -37,6 +37,7 @@ class PyH5py(PythonPackage):
variant("mpi", default=True, description="Build with MPI support")
# Python versions
+ depends_on("python@:3.9", type=("build", "run"), when="@:2.8")
depends_on("python@3.6:", type=("build", "run"), when="@3:3.1")
depends_on("python@3.7:", type=("build", "run"), when="@3.2:")