Co-authored-by: Ned Deily <nad@python.org>
%PYTHON% -c "import sphinx" > nul 2> nul
if errorlevel 1 (
echo Installing sphinx with %PYTHON%
- %PYTHON% -m pip install sphinx==2.2.0
+ %PYTHON% -m pip install -r requirements.txt
if errorlevel 1 exit /B
)
set SPHINXBUILD=%PYTHON% -c "import sphinx.cmd.build, sys; sys.exit(sphinx.cmd.build.main())"
%PYTHON% -c "import blurb" > nul 2> nul
if errorlevel 1 (
echo Installing blurb with %PYTHON%
+ rem Should have been installed with Sphinx earlier
%PYTHON% -m pip install blurb
if errorlevel 1 exit /B
)