From 512034ae768b2169d8ecf0a9199e9b24dd2f7a9a Mon Sep 17 00:00:00 2001 From: Matthias Diener Date: Fri, 10 May 2024 10:37:24 -0500 Subject: [PATCH] refine --- pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 416f2ed8..b64d0fe2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,11 @@ [build-system] -requires = ["scikit-build-core >=0.9.3", "nanobind >=1.9.2", "numpy"] +requires = [ + "scikit-build-core >=0.9.3", + "nanobind >=1.9.2", + "numpy;python_version >= '3.9' and platform_python_implementation == 'PyPy'", + "oldest-supported-numpy;python_version < '3.9' or platform_python_implementation != 'PyPy'", + "setuptools", # needed for aksetup +] build-backend = "scikit_build_core.build" [project]