From 1f2b711eb8ec90a0fd2d6b96cf34ac5c0bba5711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Thu, 11 Apr 2024 10:09:03 +0200 Subject: [PATCH] BLD: build with numpy 2.0.0rc1 (or newer) on Python >= 3.9 --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 16636ec1d..e58ccd16e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,8 @@ [build-system] requires = [ "Cython>=0.29", - "oldest-supported-numpy", + "oldest-supported-numpy ; python_version < '3.9'", + "numpy>=2.0.0rc1 ; python_version >= '3.9'", "setuptools>=61", ] build-backend = "setuptools.build_meta"