8000 sphinxopts: Use -j4, looks a better default in 2017. · python/docsbuild-scripts@2d5ce62 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d5ce62

Browse files
committed
sphinxopts: Use -j4, looks a better default in 2017.
1 parent b10e2ec commit 2d5ce62

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

build_docs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def build_one(version, git_branch, isdev, quick, venv, build_root, www_root,
163163
lang=language if language != 'en' else ''))
164164
logging.info("Build start for version: %s, language: %s",
165165
str(version), language)
166-
sphinxopts = ''
166+
sphinxopts = ['-j4']
167167
if language == 'en':
168168
target = os.path.join(www_root, str(version))
169169
else:
@@ -180,10 +180,10 @@ def build_one(version, git_branch, isdev, quick, venv, build_root, www_root,
180180
git_clone(locale_repo, locale_clone_dir,
181181
translation_branch(locale_repo, locale_clone_dir,
182182
version))
183-
sphinxopts += ('-D locale_dirs={} '
184-
'-D language={} '
185-
'-D gettext_compact=0').format(locale_dirs,
186-
gettext_language_tag)
183+
sphinxopts.extend((
184+
'-D locale_dirs={}'.format(locale_dirs),
185+
'-D language={}'.format(gettext_language_tag),
186+
'-D gettext_compact=0'))
187187
os.makedirs(target, exist_ok=True)
188188
try:
189189
os.chmod(target, 0o775)
@@ -202,7 +202,7 @@ def build_one(version, git_branch, isdev, quick, venv, build_root, www_root,
202202
blurb = os.path.join(venv, "bin/blurb")
203203
shell_out(
204204
"cd Doc; make PYTHON=%s SPHINXBUILD=%s BLURB=%s VENVDIR=%s SPHINXOPTS='%s' %s >> %s 2>&1" %
205-
(python, sphinxbuild, blurb, venv, sphinxopts, maketarget,
205+
(python, sphinxbuild, blurb, venv, ' '.join(sphinxopts), maketarget,
206206
os.path.join(log_directory, logname)), shell=True)
207207
shell_out(['chgrp', '-R', group, log_directory])
208208
changed = changed_files(os.path.join(checkout, "Doc/build/html"), target)

0 commit comments

Comments
 (0)
0