From a6bbd657fadb986bba492f263811dd3f164ca755 Mon Sep 17 00:00:00 2001 From: Jonathan Guyer Date: Fri, 26 Sep 2014 08:38:16 -0400 Subject: [PATCH] catch SystemExit sphinx-doc/sphinx@edb8fd96bdeaa80b5d56030cee7342da727a01af 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. --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index cfa2b17ee2..9eb019a660 100644 --- a/setup.py +++ b/setup.py @@ -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')