Do not try to build with Cython3

Thanks goes @rafspiny for pointing this out
This commit is contained in:
Davide Andreoli 2023-11-26 08:36:10 +01:00
parent 4bb6d9fa9f
commit c8d7bddb47
1 changed files with 7 additions and 1 deletions

View File

@ -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' %