Skip to content

Commit f890de4

Browse files
committed
Set numpy2 in pyproject.toml
1 parent 5ee60df commit f890de4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

swig/python-packaging/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ requires = [
44
"wheel",
55
"Cython",
66
"numpy==1.12.1; python_version<'3.5'",
7-
"oldest-supported-numpy; python_version>='3.5'",
7+
"oldest-supported-numpy; python_version>='3.5' and python_version<'3.9'",
8+
"numpy==2.0.2; python_version>='3.9'",
89
]
910

1011
build-backend = "setuptools.build_meta"

swig/python-packaging/setup.in.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ def run(self):
3434
if sys.platform != "darwin":
3535
args = "-fopenmp -fopenmp".split()
3636

37+
print("Numpy version", np.__version__)
38+
print("Numpy include path", np.get_include())
39+
3740
# NOTE: We need c++11 because manylinux2014 has gcc 4.8, which preceedes c++14
3841
module = Extension('_gridpp',
3942
sources=glob.glob('src/api/*.cpp') + glob.glob('src/api/*.c') + ['gridppPYTHON_wrap.cxx'],

0 commit comments

Comments
 (0)