From d71b1d63b3e2b8e365571de18b9f9c3ac7e6cd44 Mon Sep 17 00:00:00 2001 From: Rene Breton Date: Thu, 6 Feb 2025 23:25:59 +0000 Subject: [PATCH] Create pyproject.toml In more recent versions of python (>3.11) the Cython compiling fails as the setuptools have changed and requires numpy to be installable in isolation. The easiest fix is to use pyproject.toml defining the requirements. It's currently requiring numpy<2.0 as everything breaks with numpy 2.0 at the moment. In the future the toml file could be expanded to contain more project info which currently sits in the setup.py. --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9f59221 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,7 @@ +[build-system] +build-backend = 'setuptools.build_meta' +requires = [ + 'setuptools >= 40.9.0', + 'cython', + 'numpy<2.0', + ]