From 5d7939eef55c628c80e1f1f0ea4545bb47ed2963 Mon Sep 17 00:00:00 2001 From: Benjamin Rodenberg Date: Wed, 4 Sep 2024 12:06:47 +0200 Subject: [PATCH] Allow numpy 2 for pyprecice>=3.1.1 --- spack/repo/packages/py-pyprecice/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spack/repo/packages/py-pyprecice/package.py b/spack/repo/packages/py-pyprecice/package.py index 7ee79d6e..437dbc20 100644 --- a/spack/repo/packages/py-pyprecice/package.py +++ b/spack/repo/packages/py-pyprecice/package.py @@ -59,7 +59,8 @@ class PyPyprecice(PythonPackage): depends_on("python@3:", type=("build", "link", "run")) depends_on("py-setuptools@61:71", type="build") - depends_on("py-numpy@:1", type=("build", "link", "run")) + depends_on("py-numpy@:1", type=("build", "link", "run"), when="@:3.1.1") + depends_on("py-numpy", type=("build", "link", "run"), when="@3.1.1:") depends_on("py-mpi4py", type=("build", "run")) depends_on("py-cython@0.29:", type="build") depends_on("py-packaging", type="build")