From 400d90654fb0dce55facf566354b91c0f5175731 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Thu, 5 May 2022 14:43:33 +0800 Subject: [PATCH] Allow overriding the Cython version requirement (#3323) 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',