From 682ffd30ac156792a948eb897e4a36e15413727f Mon Sep 17 00:00:00 2001 From: "Seth R. Johnson" Date: Thu, 26 Jan 2023 01:28:39 -0500 Subject: 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 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. --- var/spack/repos/builtin/packages/py-h5py/package.py | 1 + 1 file changed, 1 insertion(+) 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:") -- cgit v1.2.3-70-g09d2