From c8d7bddb47ff8ab2c56e8540f5188b584aeef2b6 Mon Sep 17 00:00:00 2001 From: Dave Andreoli Date: Sun, 26 Nov 2023 08:36:10 +0100 Subject: [PATCH] Do not try to build with Cython3 Thanks goes @rafspiny for pointing this out --- setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f5353d4..53e3f34 100755 --- a/setup.py +++ b/setup.py @@ -16,6 +16,7 @@ script_path = os.path.dirname(os.path.abspath(__file__)) # dependencies EFL_MIN_VER = '1.26.0' CYTHON_MIN_VERSION = '0.29.34' +CYTHON_MAX_VERSION = '0.99.99' CYTHON_BLACKLIST = () @@ -146,9 +147,14 @@ if {'build', 'build_ext', 'install', 'bdist', 'bdist_wheel', 'sdist'} & set(sys. # check min version if Version(Cython.__version__) < Version(CYTHON_MIN_VERSION): - raise SystemExit('too old! Found %s Needed %s' % ( + raise SystemExit('too old! Found %s (need at least %s)' % ( Cython.__version__, CYTHON_MIN_VERSION)) + # check max version + if Version(Cython.__version__) > Version(CYTHON_MAX_VERSION): + raise SystemExit('too new! Found %s (need at most %s)' % ( + Cython.__version__, CYTHON_MAX_VERSION)) + # check black-listed releases if Cython.__version__.startswith(CYTHON_BLACKLIST): raise SystemExit('found %s, its broken! Need another release' %