Skip to content

Commit e3ae24f

Browse files
committed
make.bat: improve error message if Sphinx is not found
1 parent e1209ec commit e3ae24f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

sphinx/quickstart.py

+14
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,20 @@
581581
\tgoto end
582582
)
583583
584+
585+
%%SPHINXBUILD%% 2> nul
586+
if errorlevel 9009 (
587+
echo.
588+
echo.The 'sphinx-build' command was not found. Make sure Sphinx is
589+
echo.installed, then set the SPHINXBUILD environment variable to point
590+
echo.to the full path of the 'sphinx-build' executable. Alternatively
591+
echo.you may add the Sphinx directory to PATH.
592+
echo.
593+
echo.If you don't have Sphinx installed, grab it from
594+
echo.http://sphinx.pocoo.org/
595+
exit /b 1
596+
)
597+
584598
if "%%1" == "html" (
585599
\t%%SPHINXBUILD%% -b html %%ALLSPHINXOPTS%% %%BUILDDIR%%/html
586600
\tif errorlevel 1 exit /b 1

0 commit comments

Comments
 (0)