Skip to content

Commit

Permalink
Mock out external modules to allow building documentation on readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanwp committed Aug 31, 2015
1 parent f75a8a1 commit 7862c35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import mock
import sys
import os

MOCK_MODULES = ['numpy', 'scipy', 'matplotlib', 'matplotlib.pyplot', 'scipy', 'basemap', 'iris', 'netCDF4', 'nose',
'psutil', 'pyhdf']
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.Mock()

import cis

# If extensions (or modules to document with autodoc) are in another directory,
Expand Down

0 comments on commit 7862c35

Please sign in to comment.