]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix `make htmllive` target (GH-124219)
authorZachary Ware <zach@python.org>
Wed, 18 Sep 2024 21:02:20 +0000 (16:02 -0500)
committerGitHub <noreply@github.com>
Wed, 18 Sep 2024 21:02:20 +0000 (21:02 +0000)
Allow `make -C Doc htmllive` to work without manual venv activation

Set PATH to ensure that `sphinx-autobuild` can find `sphinx-build`.

Doc/Makefile

index 505b8953b50b32e841ef196f5a2cdd1679d72af0..fc0d1e4d9a2a552e1fbc60c9a9f6d71e6a763596 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