Skip to content

Commit

Permalink
Merge pull request #204 from kyleabeauchamp/fixdocs
Browse files Browse the repository at this point in the history
Stop mocking out numpy and scipy in sphinx conf.
  • Loading branch information
jchodera committed Jul 24, 2015
2 parents c711dc1 + 2a925b4 commit fc5ba1a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
import sys
import os

# KAB: As of July 22, 2015 it seems that it might be preferable to no longer mock out numpy and scipy.

# Use mock to make our code think that numpy and scipy are available, even though they might not be available on readthedocs
import mock
MOCK_MODULES = ['numpy', 'scipy', "numpy.linalg", "scipy.special", "scipy.stats"]
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.Mock()
#import mock

#MOCK_MODULES = ['numpy', 'scipy', "numpy.linalg", "scipy.special", "scipy.stats"]
#for mod_name in MOCK_MODULES:
# sys.modules[mod_name] = mock.Mock()

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down

0 comments on commit fc5ba1a

Please sign in to comment.