Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix setup.py to get documentation to build under CircleCI #2650

Merged
merged 1 commit into from
Oct 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 23 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,37 @@ def finalize_options(self):

linux_testenv = win_testenv[:]

#
# This list partially duplicates requirements_docs.txt.
# The main difference is that we don't include version pins here unless
# absolutely necessary, whereas requirements_docs.txt includes pins for
# everything, by design.
#
# For more info about the difference between the two:
#
# https://packaging.python.org/discussions/install-requires-vs-requirements/
#
docs_testenv = linux_testenv + distributed_env + [
'sphinx',
'sphinxcontrib-napoleon',
'plotly',
'pattern <= 2.6',
#
# Pattern is a PITA to install, it requires mysqlclient, which in turn
# requires MySQL dev tools be installed. We don't need it for building
# documentation.
#
# 'Pattern==3.6', # Need 3.6 or later for Py3 support
'sphinxcontrib.programoutput',
'sphinx-gallery',
'memory_profiler',
'annoy',
'Pyro4',
'scikit-learn',
'nltk',
'testfixtures',
'statsmodels',
'pyemd',
'pandas',
]

if sys.version_info < (3, 7):
Expand All @@ -288,18 +310,6 @@ def finalize_options(self):
if (3, 0) < sys.version_info < (3, 7):
linux_testenv.extend(['nmslib'])

docs_testenv = linux_testenv + distributed_env + [
'sphinx',
'sphinxcontrib-napoleon',
'plotly',
'Pattern >= 3.6', # Need 3.6 or later for Py3 support
'sphinxcontrib.programoutput',
]
#
# Get Py2.7 docs to build, see https://github.com/RaRe-Technologies/gensim/pull/2552
#
if sys.version_info == (2, 7):
docs_testenv.insert(0, 'doctools==0.14')

ext_modules = [
Extension('gensim.models.word2vec_inner',
Expand Down