Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c8ce05

Browse files
authored
Merge pull request #7828 from NelleV/DOC_early_checks_2
[MRG+1] MAINT added early checks for dependencies for doc building
2 parents b6709ea + be0fb7d commit 7c8ce05

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@
6767
raise ImportError("No module named mock - you need to install "
6868
"mock to build the documentation")
6969

70+
try:
71+
from PIL import Image
72+
except ImportError:
73+
raise ImportError("No module named Image - you need to install "
74+
"pillow to build the documentation")
75+
76+
7077
try:
7178
import matplotlib
7279
except ImportError:

0 commit comments

Comments
 (0)