Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 515f899

Browse files
jhpalmieriMatthias Koeppe
authored and
Matthias Koeppe
committed
sage_setup.docbuild.AllBuilder: stop the non-reference manual docs from being built in parallel
1 parent 80720d7 commit 515f899

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/sage_setup/docbuild/__init__.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,15 @@ def clean(self, *args):
286286

287287
from .utils import build_many as _build_many
288288

289-
def build_many(target, args):
289+
def build_many(target, args, processes=None):
290290
"""
291291
Thin wrapper around `sage_setup.docbuild.utils.build_many` which uses the
292292
docbuild settings ``NUM_THREADS`` and ``ABORT_ON_ERROR``.
293293
"""
294+
if processes is None:
295+
processes = NUM_THREADS
294296
try:
295-
_build_many(target, args, processes=NUM_THREADS)
297+
_build_many(target, args, processes=processes)
296298
except BaseException as exc:
297299
if ABORT_ON_ERROR:
298300
raise
@@ -349,7 +351,7 @@ def _wrapper(self, name, *args, **kwds):
349351

350352
# build the other documents in parallel
351353
L = [(doc, name, kwds) + args for doc in others]
352-
build_many(build_other_doc, L)
354+
build_many(build_other_doc, L, 1)
353355
logger.warning("Elapsed time: %.1f seconds."%(time.time()-start))
354356
logger.warning("Done building the documentation!")
355357

0 commit comments

Comments
 (0)