From d24c5ea6661de9986380dc477242e7f603b2ef54 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 1be3057c3e..1f0df1277e 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',