Skip to content

Commit 05f1c89

Browse files
andresdelfinozooba
authored andcommitted
bpo-33696: Install python-docs-theme even if SPHINXBUILD is defined (GH-7242)
1 parent 143ce5c commit 05f1c89

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Doc/make.bat

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ if not defined SPHINXBUILD (
1616
%PYTHON% -m pip install sphinx
1717
if errorlevel 1 exit /B
1818
)
19-
%PYTHON% -c "import python_docs_theme" > nul 2> nul
20-
if errorlevel 1 (
21-
echo Installing python-docs-theme with %PYTHON%
22-
%PYTHON% -m pip install python-docs-theme
23-
if errorlevel 1 exit /B
24-
)
2519
set SPHINXBUILD=%PYTHON% -c "import sphinx, sys; sys.argv[0] = 'sphinx-build'; sys.exit(sphinx.main())"
2620
)
2721

22+
%PYTHON% -c "import python_docs_theme" > nul 2> nul
23+
if errorlevel 1 (
24+
echo Installing python-docs-theme with %PYTHON%
25+
%PYTHON% -m pip install python-docs-theme
26+
if errorlevel 1 exit /B
27+
)
28+
2829
if not defined BLURB (
2930
%PYTHON% -c "import blurb" > nul 2> nul
3031
if errorlevel 1 (
@@ -35,9 +36,6 @@ if not defined BLURB (
3536
set BLURB=%PYTHON% -m blurb
3637
)
3738

38-
if not defined SPHINXBUILD set SPHINXBUILD=sphinx-build
39-
if not defined BLURB set BLURB=blurb
40-
4139
if "%1" NEQ "htmlhelp" goto :skiphhcsearch
4240
if exist "%HTMLHELP%" goto :skiphhcsearch
4341

0 commit comments

Comments
 (0)