From b94f0c5fb7554dd907eb7b9c9c4ce4f71d7bbf13 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sun, 17 Sep 2023 21:01:58 +0200 Subject: [PATCH] BLD: add a Cython <3.0 constraint on Windows (32-bit Python tests crash) --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 844f2c0c..1b437902 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,9 @@ build-backend = "mesonpy" requires = [ "meson-python>=0.14.0", - "Cython>=0.29.35", # when updating version, also update check in meson.build + # when updating Cython version, also update check in meson.build + "Cython>=0.29.35,<3.0; python_version>='3.12' and platform_system=='Windows'", + "Cython>=0.29.35; python_version<'3.12' or platform_system!='Windows'", # When numpy 2.0.0rc1 comes out, we should update this to build against 2.0, # and then runtime depend on the range 1.22.X to <2.3.