Merge pull request #10132 from tk0miya/10122_install_check_in_make.bat

Fix #10122: make.bat should check the installation before help
This commit is contained in:
Takeshi KOMIYA 2022-01-30 23:54:37 +09:00 committed by GitHub
commit 07110b7557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -21,6 +21,8 @@ Bugs fixed
----------
* #10133: autodoc: Crashed when mocked module is used for type annotation
* #10122: sphinx-build: make.bat does not check the installation of sphinx-build
command before showing help
Testing
--------

View File

@ -10,8 +10,6 @@ if "%SPHINXBUILD%" == "" (
set SOURCEDIR={{ rsrcdir }}
set BUILDDIR={{ rbuilddir }}
if "%1" == "" goto help
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
@ -25,6 +23,8 @@ if errorlevel 9009 (
exit /b 1
)
if "%1" == "" goto help
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end