Unverified Kaydet (Commit) d8af8302 authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) GitHub

bpo-33673: Install python-docs-theme even if Sphinx is already installed (GH-7163)

(cherry picked from commit 3d3e66c2)
Co-authored-by: 's avatarAndrés Delfino <adelfino@gmail.com>
üst 100db0b5
...@@ -13,7 +13,13 @@ if not defined SPHINXBUILD ( ...@@ -13,7 +13,13 @@ if not defined SPHINXBUILD (
%PYTHON% -c "import sphinx" > nul 2> nul %PYTHON% -c "import sphinx" > nul 2> nul
if errorlevel 1 ( if errorlevel 1 (
echo Installing sphinx with %PYTHON% 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 if errorlevel 1 exit /B
) )
set SPHINXBUILD=%PYTHON% -c "import sphinx, sys; sys.argv[0] = 'sphinx-build'; sphinx.main()" set SPHINXBUILD=%PYTHON% -c "import sphinx, sys; sys.argv[0] = 'sphinx-build'; sphinx.main()"
......
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