[Python-checkins] bpo-33673: Install python-docs-theme even if Sphinx is already installed (GH-7163)
Steve Dower
webhook-mailer at python.org
Mon May 28 19:20:37 EDT 2018
https://github.com/python/cpython/commit/3d3e66c2daebd8e6b18944eac7546168c0006c78
commit: 3d3e66c2daebd8e6b18944eac7546168c0006c78
branch: master
author: Andrés Delfino <adelfino at gmail.com>
committer: Steve Dower <steve.dower at microsoft.com>
date: 2018-05-28T16:20:34-07:00
summary:
bpo-33673: Install python-docs-theme even if Sphinx is already installed (GH-7163)
files:
M Doc/make.bat
diff --git a/Doc/make.bat b/Doc/make.bat
index c69cfae31941..3a4b365689db 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()"
More information about the Python-checkins
mailing list