Skip to content

Commit 76ae917

Browse files
Allow numpy 2 for pyprecice>=3.1.1 (#218)
* Update pyproject.toml * Update setup.py * Update package.py
1 parent 1f75046 commit 76ae917

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
22
# PEP 518 - minimum build system requirements
3-
requires = ["setuptools>=61,<72", "wheel", "Cython>=0.29", "packaging", "pip>=19.0.0", "numpy<2", "mpi4py", "pkgconfig"]
3+
requires = ["setuptools>=61,<72", "wheel", "Cython>=0.29", "packaging", "pip>=19.0.0", "numpy", "mpi4py", "pkgconfig"]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def initialize_options(self):
137137
author_email='[email protected]',
138138
license='LGPL-3.0',
139139
python_requires='>=3',
140-
install_requires=['numpy<2', 'mpi4py', 'Cython'],
140+
install_requires=['numpy', 'mpi4py', 'Cython'],
141141
# mpi4py is only needed, if preCICE was compiled with MPI
142142
# see https://github.com/precice/python-bindings/issues/8
143143
packages=['precice'],

spack/repo/packages/py-pyprecice/package.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ class PyPyprecice(PythonPackage):
5959

6060
depends_on("python@3:", type=("build", "link", "run"))
6161
depends_on("py-setuptools@61:71", type="build")
62-
depends_on("py-numpy@:1", type=("build", "link", "run"))
62+
depends_on("py-numpy", type=("build", "link", "run"), when="@3.1.1:")
63+
depends_on("py-numpy@:1", type=("build", "link", "run"), when="@:3.1.1")
6364
depends_on("py-mpi4py", type=("build", "run"))
6465
depends_on("[email protected]:", type="build")
6566
depends_on("py-packaging", type="build")

0 commit comments

Comments
 (0)