Skip to content

Commit

Permalink
Allow overriding the Cython version requirement
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pabs3 committed Apr 13, 2022
1 parent 4c941b4 commit d24c5ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d24c5ea

Please sign in to comment.