From 629c9295a2db8b3ded9f14abb7b14678650063e7 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Wed, 13 Apr 2022 14:37:31 +0800 Subject: [PATCH] Allow overriding the Cython version requirement Use an environment variable for this since it is often easier to set in a build wrapper rather than trying to override command-line options in the right layer of a multi-layer build wrapper and it also requires a lot less code to do the override. This will be useful for using alpha versions of Cython or old versions of Cython provided by the distros or specific versions that fix certain bugs. --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 8091591fe0..d41f668ee0 100644 --- a/setup.py +++ b/setup.py @@ -320,6 +320,9 @@ def run(self): # CYTHON_STR = 'Cython==0.29.28' +# Allow overriding the Cython version requirement +CYTHON_STR = os.environ.get('GENSIM_CYTHON_REQUIRES', CYTHON_STR) + install_requires = [ NUMPY_STR, 'scipy >= 0.18.1',