From c82594de218cfc3052c8349687e04bbb5de3b6bb Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Tue, 25 Apr 2023 14:42:24 -0500 Subject: py-scipy: PyPI-based Python version support (#37137) --- var/spack/repos/builtin/packages/py-scipy/package.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-scipy/package.py b/var/spack/repos/builtin/packages/py-scipy/package.py index f882d413e0..9dea18d5cb 100644 --- a/var/spack/repos/builtin/packages/py-scipy/package.py +++ b/var/spack/repos/builtin/packages/py-scipy/package.py @@ -53,6 +53,14 @@ class PyScipy(PythonPackage): version("1.2.1", sha256="e085d1babcb419bbe58e2e805ac61924dac4ca45a07c9fa081144739e500aa3c") version("1.1.0", sha256="878352408424dffaa695ffedf2f9f92844e116686923ed9aa8626fc30d32cfd1") + # Based on wheel availability on PyPI + depends_on("python@3.8:3.11", when="@1.9.2:", type=("build", "link", "run")) + depends_on("python@3.8:3.10", when="@1.8:1.9.1", type=("build", "link", "run")) + depends_on("python@:3.10", when="@1.7.2:1.7", type=("build", "link", "run")) + depends_on("python@:3.9", when="@1.5.4:1.7.1", type=("build", "link", "run")) + depends_on("python@:3.8", when="@1.3.2:1.5.3", type=("build", "link", "run")) + depends_on("python@:3.7", when="@1.1:1.3.1", type=("build", "link", "run")) + # TODO: remove once pip build supports BLAS/LAPACK specification # https://github.com/mesonbuild/meson-python/pull/167 depends_on("py-build", when="@1.9:", type="build") @@ -98,14 +106,6 @@ class PyScipy(PythonPackage): depends_on("py-numpy@1.14.5:+blas+lapack", when="@1.5.0:1.5", type=("build", "link", "run")) depends_on("py-numpy@1.13.3:+blas+lapack", when="@1.3:1.4", type=("build", "link", "run")) depends_on("py-numpy@1.8.2:+blas+lapack", when="@:1.2", type=("build", "link", "run")) - depends_on("python@3.8:3.11", when="@1.9:", type=("build", "link", "run")) - depends_on("python@3.8:3.10", when="@1.8", type=("build", "link", "run")) - depends_on("python@3.7:3.10", when="@1.7.2:1.7", type=("build", "link", "run")) - depends_on("python@3.7:3.9", when="@1.6.2:1.7.1", type=("build", "link", "run")) - depends_on("python@3.7:3.10.0", when="@1.6:1.6.1", type=("build", "link", "run")) - depends_on("python@3.6:3.10.0", when="@1.5.0:1.5", type=("build", "link", "run")) - depends_on("python@3.5:3.10.0", when="@1.3:1.4", type=("build", "link", "run")) - depends_on("python@2.7:2.8,3.4:3.10.0", when="@:1.2", type=("build", "link", "run")) depends_on("py-pytest", type="test") # NOTE: scipy should use the same BLAS/LAPACK as numpy. -- cgit v1.2.3-70-g09d2