This commit is contained in:
Alan Saul 2013-01-31 11:59:46 +00:00
parent 173375fec3
commit 70222278a1

View file

@ -322,6 +322,7 @@ def skip(app, what, name, obj, skip, options):
def setup(app):
app.connect("autodoc-skip-member", skip)
#############################################################################
#
# Mock out imports with C dependencies because ReadTheDocs can't build them.
@ -344,7 +345,7 @@ class Mock(object):
return Mock()
MOCK_MODULES = ['matplotlib', 'matplotlib.pyplot',
'numpy', 'numpy.linalg', 'pylab'
'pylab'
]
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = Mock()