1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
From: Robin Jarry <robin@jarry.cc>
Date: Tue, 8 Dec 2020 17:18:53 +0100
Subject: docs: use python3 interpreter explicitly
The python symlink is not installed by default anymore.
Signed-off-by: Robin Jarry <robin@jarry.cc>
---
master/docs/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/master/docs/Makefile b/master/docs/Makefile
index 2668992..73c08fd 100644
--- a/master/docs/Makefile
+++ b/master/docs/Makefile
@@ -4,10 +4,10 @@ dev: clean html
.PHONY: tutorial manual
-VERSION := $(shell if [ -n "$$VERSION" ]; then echo $$VERSION; else PYTHONPATH=..:$${PYTHONPATH} python -c 'from buildbot import version; print(version)'; fi)
+VERSION := $(shell if [ -n "$$VERSION" ]; then echo $$VERSION; else PYTHONPATH=..:$${PYTHONPATH} python3 -c 'from buildbot import version; print(version)'; fi)
# sphinx is fastest on Buildbot docs when using around 8 cores. Anything more does not improve the build speed
-JOBS := $(shell python -c 'import multiprocessing; print(min(8, multiprocessing.cpu_count()))')
+JOBS := $(shell python3 -c 'import multiprocessing; print(min(8, multiprocessing.cpu_count()))')
TAR_VERSION := $(shell tar --version)
TAR_TRANSFORM := $(if $(filter bsdtar,$(TAR_VERSION)),-s /^html/$(VERSION)/,--transform s/^html/$(VERSION)/)
|