py-fenics-dolfinx: add version upper bound for Python dependency (#40125)

* py-fenics-dolfinx: add upper bound on Python version

* Small fix

* Update var/spack/repos/builtin/packages/py-fenics-dolfinx/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

---------

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Garth N. Wells 2023-09-21 20:17:45 +01:00 committed by GitHub
parent aa87c747f9
commit cd16478aba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,8 +24,10 @@ class PyFenicsDolfinx(PythonPackage):
depends_on("cmake@3.19:", type="build")
depends_on("hdf5", type="build")
depends_on("pkgconfig", type="build")
depends_on("python@3.8:", type=("build", "run"), when="@0.5:")
depends_on("python@3.7:", type=("build", "run"))
depends_on("python@3.8:", when="@0.6.1:", type=("build", "run"))
depends_on("python@3.8:3.10", when="@0.5:0.6.0", type=("build", "run"))
depends_on("python@3.7:3.10", when="@0.4", type=("build", "run"))
depends_on("fenics-dolfinx@main", when="@main")
depends_on("fenics-dolfinx@0.6.0", when="@0.6.0")