Skip to content

Commit

Permalink
catch SystemExit
Browse files Browse the repository at this point in the history
sphinx-doc/sphinx@edb8fd9 moved `sys.exit()`
from __init__.py to sphinx.build(), so we need to catch it. Probably want
to shift to "make mode" at some point.
  • Loading branch information
guyer committed Dec 17, 2015
1 parent 9ab1012 commit a6bbd65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ def run (self):
sphinx.main(['sphinx-build', '-b', 'redirecting_html'] + sphinx_args + ['documentation/_build/html/'])

if self.pdf:
sphinx.main(['sphinx-build', '-b', 'latex'] + sphinx_args + ['documentation/_build/latex/'])
try:
sphinx.main(['sphinx-build', '-b', 'latex'] + sphinx_args + ['documentation/_build/latex/'])
except SystemExit:
pass

outdir = os.path.join('documentation', '_build', 'latex')

Expand Down

0 comments on commit a6bbd65

Please sign in to comment.