diff options
author | Andrés Delfino <adelfino@gmail.com> | 2018-05-28 23:20:34 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2018-05-28 23:20:34 (GMT) |
commit | 3d3e66c2daebd8e6b18944eac7546168c0006c78 (patch) | |
tree | cab29f8426845409eda2533c8af906aa9dfdf58f /Doc/make.bat | |
parent | 7165754b6b5f3b7c07050d921fa1c58bba5f0ff1 (diff) | |
download | cpython-3d3e66c2daebd8e6b18944eac7546168c0006c78.zip cpython-3d3e66c2daebd8e6b18944eac7546168c0006c78.tar.gz cpython-3d3e66c2daebd8e6b18944eac7546168c0006c78.tar.bz2 |
bpo-33673: Install python-docs-theme even if Sphinx is already installed (GH-7163)
Diffstat (limited to 'Doc/make.bat')
-rw-r--r-- | Doc/make.bat | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Doc/make.bat b/Doc/make.bat index c69cfae..3a4b365 100644 --- a/Doc/make.bat +++ b/Doc/make.bat @@ -13,7 +13,13 @@ if not defined SPHINXBUILD ( %PYTHON% -c "import sphinx" > nul 2> nul if errorlevel 1 ( echo Installing sphinx with %PYTHON% - %PYTHON% -m pip install sphinx python-docs-theme + %PYTHON% -m pip install sphinx + 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'; sphinx.main()" |