From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 27 May 2024 17:29:27 +0000 (+0300) Subject: Docs: Only install sphinx-autobuild for `make htmllive` (#119607) X-Git-Tag: v3.14.0a1~1753 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88e3fee3f81f3470cf4fe2e2611441071779e884;p=thirdparty%2FPython%2Fcpython.git Docs: Only install sphinx-autobuild for `make htmllive` (#119607) --- diff --git a/Doc/Makefile b/Doc/Makefile index eca574ec290a..1cbfc722b010 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -150,10 +150,14 @@ gettext: build htmlview: html $(PYTHON) -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('build/html/index.html'))" +.PHONY: ensure-sphinx-autobuild +ensure-sphinx-autobuild: venv + $(VENVDIR)/bin/sphinx-autobuild --version > /dev/null || $(VENVDIR)/bin/python3 -m pip install sphinx-autobuild + .PHONY: htmllive htmllive: SPHINXBUILD = $(VENVDIR)/bin/sphinx-autobuild htmllive: SPHINXOPTS = --re-ignore="/venv/" --open-browser --delay 0 -htmllive: html +htmllive: ensure-sphinx-autobuild html .PHONY: clean clean: clean-venv diff --git a/Doc/requirements.txt b/Doc/requirements.txt index 15675ab45fea..b47a9d8a8635 100644 --- a/Doc/requirements.txt +++ b/Doc/requirements.txt @@ -10,7 +10,6 @@ sphinx~=7.3.0 blurb -sphinx-autobuild sphinxext-opengraph==0.7.5 sphinx-notfound-page==1.0.0