28081ef832
Traditionally the way to query for the numpy C API has been through distutils/setuptools, but the use of setuptools beyond a PEP-517 build backend is increasingly discouraged. numpy 2 introduced numpy-config and a pkg-config file to allow consumer build systems to better support the use of numpy as a dependency. Based on: https://github.com/numpy/numpy/commit/2634f803313f349170c09606d3cc619accd72247 Reported by: fluffy PR: 281470
22 lines
496 B
TOML
22 lines
496 B
TOML
--- pyproject.toml.orig 2024-02-05 21:17:48 UTC
|
|
+++ pyproject.toml
|
|
@@ -1,8 +1,8 @@ requires = [
|
|
[build-system]
|
|
build-backend = "mesonpy"
|
|
requires = [
|
|
- "Cython>=0.29.34,<3.1",
|
|
- "meson-python>=0.15.0,<0.16.0",
|
|
+ "Cython>=0.29.34",
|
|
+ "meson-python>=0.15.0",
|
|
]
|
|
|
|
[project]
|
|
@@ -43,6 +43,7 @@ f2py = 'numpy.f2py.f2py2e:main'
|
|
|
|
[project.scripts]
|
|
f2py = 'numpy.f2py.f2py2e:main'
|
|
+numpy-config = 'numpy._configtool:main'
|
|
|
|
[project.entry-points.array_api]
|
|
numpy = 'numpy.array_api'
|