Skip to content

Commit

Permalink
Mock out glymur for doc build.
Browse files Browse the repository at this point in the history
Mock glymur if glymur or a backend is not installed.
  • Loading branch information
Cadair committed Nov 12, 2014
1 parent ac877bf commit 4963bd9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@
modules = {}

try:
import skimage
import skimage
except ImportError:
modules.update({'skimage':mock, 'skimage.feature':mock.module})
try:
import glymur
_, OJP2 = glymur.lib.config.glymur_config()
except (ImportError, IOError):
modules.update({'glymur':mock})

sys.modules.update(modules)

Expand Down

0 comments on commit 4963bd9

Please sign in to comment.