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

Skip to content

Commit d90e290

Browse files
authored
Merge pull request #27649 from dstansby/doc-check-for-latex
Check for latex binary before building docs
2 parents 59f6e2b + 7d42980 commit d90e290

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ def _check_dependencies():
158158
raise OSError(
159159
"No binary named dot - graphviz must be installed to build the "
160160
"documentation")
161+
if shutil.which('latex') is None:
162+
raise OSError(
163+
"No binary named latex - a LaTeX distribution must be installed to build "
164+
"the documentation")
161165

162166
_check_dependencies()
163167

0 commit comments

Comments
 (0)