From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 18 Sep 2024 21:12:17 +0000 (+0200) Subject: [3.12] Fix `make htmllive` target (GH-124222) X-Git-Tag: v3.12.7~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2216c52828d96f19226f69efadff817ec0e36dcd;p=thirdparty%2FPython%2Fcpython.git [3.12] Fix `make htmllive` target (GH-124222) Allow `make -C Doc htmllive` to work without manual venv activation Set PATH to ensure that `sphinx-autobuild` can find `sphinx-build`. (cherry picked from commit 9a6e2336e4b54fc13064b77826a67b03b3b45133) Authored-by: Zachary Ware --- diff --git a/Doc/Makefile b/Doc/Makefile index 4a515d5a92a0..3d39766b3cb0 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -152,7 +152,7 @@ htmlview: html $(PYTHON) -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('build/html/index.html'))" .PHONY: htmllive -htmllive: SPHINXBUILD = $(VENVDIR)/bin/sphinx-autobuild +htmllive: SPHINXBUILD = PATH=$(VENVDIR)/bin:$$PATH sphinx-autobuild htmllive: SPHINXOPTS = --re-ignore="/venv/" --open-browser --delay 0 htmllive: _ensure-sphinx-autobuild html