bpo-33696: Install python-docs-theme even if SPHINXBUILD is defined (GH-7242)
(cherry picked from commit 05f1c8902c
)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
This commit is contained in:
parent
d9b118284c
commit
ea1982a475
12
Doc/make.bat
12
Doc/make.bat
|
@ -16,13 +16,14 @@ if not defined SPHINXBUILD (
|
|||
%PYTHON% -m pip install sphinx
|
||||
if errorlevel 1 exit /B
|
||||
)
|
||||
%PYTHON% -c "import python_docs_theme" > nul 2> nul
|
||||
if errorlevel 1 (
|
||||
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
|
||||
)
|
||||
set SPHINXBUILD=%PYTHON% -c "import sphinx, sys; sys.argv[0] = 'sphinx-build'; sys.exit(sphinx.main())"
|
||||
)
|
||||
|
||||
if not defined BLURB (
|
||||
|
@ -35,9 +36,6 @@ if not defined 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 exist "%HTMLHELP%" goto :skiphhcsearch
|
||||
|
||||
|
|
Loading…
Reference in New Issue