From e68f1f8ba138b4e2b8066fbed7050931ce22fc66 Mon Sep 17 00:00:00 2001 From: David Lawson Date: Tue, 18 Nov 2025 15:11:56 +0000 Subject: [PATCH] Limit max cython version to build with This is a workaround until a new version of Cython is released with https://github.com/cython/cython/pull/7314 --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 197544dd..a3ae716d 100644 --- a/setup.py +++ b/setup.py @@ -59,6 +59,7 @@ """ MIN_REQUIRED_CYTHON_VERSION = "0.29.30" +MAX_CYTHON_VERSION = "3.1.7" ############################################################################### # Custom distutils commands @@ -167,7 +168,7 @@ def getext(fname): if USE_CYTHON: ext_modules = get_cython_extensions() - extra_install_requires = [f'cython>={MIN_REQUIRED_CYTHON_VERSION}'] + extra_install_requires = [f'cython>={MIN_REQUIRED_CYTHON_VERSION},<={MAX_CYTHON_VERSION}'] else: ext_modules = [] extra_install_requires = []