Commit 05f1c890 authored by Andrés Delfino's avatar Andrés Delfino Committed by Steve Dower

bpo-33696: Install python-docs-theme even if SPHINXBUILD is defined (GH-7242)

parent 143ce5c6
...@@ -16,15 +16,16 @@ if not defined SPHINXBUILD ( ...@@ -16,15 +16,16 @@ if not defined SPHINXBUILD (
%PYTHON% -m pip install sphinx %PYTHON% -m pip install sphinx
if errorlevel 1 exit /B if errorlevel 1 exit /B
) )
%PYTHON% -c "import python_docs_theme" > nul 2> nul
if errorlevel 1 (
echo Installing python-docs-theme with %PYTHON%
%PYTHON% -m pip install python-docs-theme
if errorlevel 1 exit /B
)
set SPHINXBUILD=%PYTHON% -c "import sphinx, sys; sys.argv[0] = 'sphinx-build'; sys.exit(sphinx.main())" set SPHINXBUILD=%PYTHON% -c "import sphinx, sys; sys.argv[0] = 'sphinx-build'; sys.exit(sphinx.main())"
) )
%PYTHON% -c "import python_docs_theme" > nul 2> nul
if errorlevel 1 (
echo Installing python-docs-theme with %PYTHON%
%PYTHON% -m pip install python-docs-theme
if errorlevel 1 exit /B
)
if not defined BLURB ( if not defined BLURB (
%PYTHON% -c "import blurb" > nul 2> nul %PYTHON% -c "import blurb" > nul 2> nul
if errorlevel 1 ( if errorlevel 1 (
...@@ -35,9 +36,6 @@ if not defined BLURB ( ...@@ -35,9 +36,6 @@ if not defined BLURB (
set BLURB=%PYTHON% -m blurb set BLURB=%PYTHON% -m blurb
) )
if not defined SPHINXBUILD set SPHINXBUILD=sphinx-build
if not defined BLURB set BLURB=blurb
if "%1" NEQ "htmlhelp" goto :skiphhcsearch if "%1" NEQ "htmlhelp" goto :skiphhcsearch
if exist "%HTMLHELP%" goto :skiphhcsearch if exist "%HTMLHELP%" goto :skiphhcsearch
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment