We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 115bdbd + e821c5e commit 2f9274aCopy full SHA for 2f9274a
1 file changed
setup.py
@@ -388,7 +388,11 @@ def run_setup(extensions):
388
# 1.) build_ext eats errors at compile time, letting the install complete while producing useful feedback
389
# 2.) there could be a case where the python environment has cython installed but the system doesn't have build tools
390
if pre_build_check():
391
- kw['setup_requires'] = ['Cython>=0.20,<0.25']
+ cython_dep = 'Cython>=0.20,<0.25'
392
+ user_specified_cython_version = os.environ.get('CASS_DRIVER_ALLOWED_CYTHON_VERSION')
393
+ if user_specified_cython_version is not None:
394
+ cython_dep = 'Cython==%s' % (user_specified_cython_version,)
395
+ kw['setup_requires'] = [cython_dep]
396
else:
397
sys.stderr.write("Bypassing Cython setup requirement\n")
398
0 commit comments