]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Fix `make htmllive` target (GH-124219) (#124221)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Sep 2024 23:21:35 +0000 (01:21 +0200)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2024 23:21:35 +0000 (16:21 -0700)
Fix `make htmllive` target (GH-124219)

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)

Co-authored-by: Zachary Ware <zach@python.org>
Doc/Makefile

index b1c856c136170b3a238d8524ac0730d29aad62f1..a2d89343648dc178ba250900057adab0dab95ef5 100644 (file)
@@ -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