Skip to content

Commit

Permalink
fix for readthedocs build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Simkovic committed Apr 6, 2017
1 parent 989fb5a commit e04ebd7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ def version():
"Topic :: Scientific/Engineering :: Bio-Informatics",
]

# Additional check to bypass scikit-learn dependency
# issues addressed in scikit-learn/scikit-learn#4164
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if on_rtd:
SETUPREQUIREMENTS = ['numpy', 'scipy']
else:
SETUPREQUIREMENTS = []

# Do the actual setup below
setup(
Expand All @@ -150,6 +157,7 @@ def version():
url=URL,
packages=PACKAGES,
package_dir={PACKAGE_NAME: PACKAGE_DIR},
setup_requires=SETUPREQUIREMENTS,
install_requires=DEPENDENCIES,
scripts=SCRIPTS,
platforms=PLATFORMS,
Expand Down

0 comments on commit e04ebd7

Please sign in to comment.