10000 bpo-33673: Install python-docs-theme even if Sphinx is already instal… · python/cpython@d8af830 · GitHub
[go: up one dir, main page]

Skip to content

Commit d8af830

Browse files
bpo-33673: Install python-docs-theme even if Sphinx is already installed (GH-7163)
(cherry picked from commit 3d3e66c) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
1 parent 100db0b co
F42B
mmit d8af830

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Doc/make.bat

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ if not defined SPHINXBUILD (
1313
%PYTHON% -c "import sphinx" > nul 2> nul
1414
if errorlevel 1 (
1515
echo Installing sphinx with %PYTHON%
16-
%PYTHON% -m pip install sphinx python-docs-theme
16+
%PYTHON% -m pip install sphinx
17+
if errorlevel 1 exit /B
18+
)
19+
%PYTHON% -c "import python_docs_theme" > nul 2> nul
20+
if errorlevel 1 (
21+
echo Installing python-docs-theme with %PYTHON%
22+
%PYTHON% -m pip install python-docs-theme
1723
if errorlevel 1 exit /B
1824
)
1925
set SPHINXBUILD=%PYTHON% -c "import sphinx, sys; sys.argv[0] = 'sphinx-build'; sphinx.main()"

0 commit comments

Comments
 (0)
0