Skip to content

Commit 68ebf69

Browse files
committed
-attempting to fix readthedocs build process by using mock modules
1 parent 36cccea commit 68ebf69

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414

1515
import sys
1616
import os
17+
import mock
18+
19+
MOCK_MODULES = ['numpy','scipy','scipy.optimize']
20+
for mod_name in MOCK_MODULES:
21+
sys.modules[mod_name] = mock.Mock()
1722

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

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
numpydoc==0.5
22
numpy==1.8.0
3-
scipy==0.13.0

0 commit comments

Comments
 (0)