File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Original file line number Diff line number Diff line change 7
7
# - make merge # To merge pot from upstream
8
8
# - make fuzzy # To find fuzzy strings
9
9
# - make progress # To compute current progression
10
+ # - make upgrade_venv # To upgrade the venv that compiles the doc
10
11
#
11
12
# Modes are: autobuild-stable, autobuild-dev, and autobuild-html,
12
13
# documented in gen/src/3.6/Doc/Makefile as we're only delegating the
@@ -19,13 +20,14 @@ VENV := ~/.venvs/python-docs-i18n/
19
20
PYTHON := $(shell which python3)
20
21
MODE := autobuild-dev-html
21
22
BRANCH = $(shell git describe --contains --all HEAD)
23
+ JOBS = 1
22
24
23
25
24
26
.PHONY : all
25
27
all : $(VENV ) /bin/sphinx-build $(VENV ) /bin/blurb $(SPHINX_CONF )
26
28
mkdir -p $(CPYTHON_CLONE ) /Doc/locales/$(LANGUAGE ) /
27
29
ln -nfs $(shell readlink -f .) $(CPYTHON_CLONE ) /Doc/locales/$(LANGUAGE ) /LC_MESSAGES
28
- . $(VENV ) /bin/activate; $(MAKE ) -C $(CPYTHON_CLONE ) /Doc/ SPHINXOPTS=' -D locale_dirs=locales -D language=$(LANGUAGE) -D gettext_compact=0' $(MODE )
30
+ . $(VENV ) /bin/activate; $(MAKE ) -C $(CPYTHON_CLONE ) /Doc/ SPHINXOPTS=' -j$(JOBS) - D locale_dirs=locales -D language=$(LANGUAGE) -D gettext_compact=0' $(MODE )
29
31
30
32
31
33
$(SPHINX_CONF ) :
@@ -45,6 +47,11 @@ $(VENV)/bin/blurb: $(VENV)/bin/activate
45
47
. $(VENV ) /bin/activate; python3 -m pip install blurb
46
48
47
49
50
+ .PHONY : upgrade_venv
51
+ upgrade_venv : $(VENV ) /bin/activate
52
+ . $(VENV ) /bin/activate; python3 -m pip install --upgrade sphinx blurb
53
+
54
+
48
55
.PHONY : progress
49
56
progress :
50
57
@python3 -c ' import sys; print("{:.1%}".format(int(sys.argv[1]) / int(sys.argv[2])))' \
You can’t perform that action at this time.
0 commit comments