Skip to content

Commit 3e8b8ef

Browse files
committed
Merge pull request #636 from enthought/feature/fix-readthedocs-build
Fix ReadTheDocs docs build
2 parents 3c518e9 + 9174efa commit 3e8b8ef

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

docs/sphinx/source/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
'matplotlib.pyplot',
2727
'numpy',
2828
'numpy.lib',
29-
'numpy.lib.format',
3029
'numpy.lib.utils',
3130
'numpy.compat',
3231
'IPython',

setup.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,21 @@
44
# Distributed under the terms of the BSD License. See COPYING.rst.
55
# -----------------------------------------------------------------------------
66

7+
import os
78
from setuptools import setup, find_packages
89
from distarray.__version__ import __version__
910

11+
# let our mocks work on ReadTheDocs
12+
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
13+
if on_rtd:
14+
install_requires = []
15+
else:
16+
install_requires = [
17+
'ipyparallel',
18+
'numpy',
19+
'mpi4py'
20+
]
21+
1022

1123
def parse_readme(filename='README.rst', sentinel="README"):
1224
"""
@@ -25,12 +37,6 @@ def parse_readme(filename='README.rst', sentinel="README"):
2537

2638
if __name__ == "__main__":
2739

28-
install_requires = [
29-
'ipyparallel',
30-
'numpy',
31-
'mpi4py'
32-
]
33-
3440
metadata = {
3541
'name': 'distarray',
3642
'version': __version__,

0 commit comments

Comments
 (0)