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"