diff --git a/setup.py b/setup.py index a6fcc7b4..6dba9cc7 100644 --- a/setup.py +++ b/setup.py @@ -212,7 +212,7 @@ class NoPatchExtension(Extension): base.__init__(self, *args, **kwargs) else: Extension.__init__(self, *args, **kwargs) - + class build_extensions(build_ext): @@ -388,7 +388,7 @@ def run_setup(extensions): # 1.) build_ext eats errors at compile time, letting the install complete while producing useful feedback # 2.) there could be a case where the python environment has cython installed but the system doesn't have build tools if pre_build_check(): - kw['setup_requires'] = ['Cython>=0.20'] + kw['setup_requires'] = ['Cython>=0.20,<0.25'] else: sys.stderr.write("Bypassing Cython setup requirement\n") diff --git a/test-requirements.txt b/test-requirements.txt index 5e255263..c84faa80 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -11,5 +11,5 @@ pure-sasl twisted gevent>=1.0 eventlet -cython>=0.21 +cython>=0.20,<0.25 packaging