summaryrefslogtreecommitdiffstats
path: root/Doc/library/compileall.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <antoine@python.org>2019-05-15 21:45:18 (GMT)
committerGitHub <noreply@github.com>2019-05-15 21:45:18 (GMT)
commit1a2dd82f56bd813aacc570e172cefe55a8a41504 (patch)
tree2c8815834378688cb0fd7d6596eee4ae1aadefea /Doc/library/compileall.rst
parentc981ad16b0f9740bd3381c96b4227a1faa1a88d9 (diff)
downloadcpython-1a2dd82f56bd813aacc570e172cefe55a8a41504.zip
cpython-1a2dd82f56bd813aacc570e172cefe55a8a41504.tar.gz
cpython-1a2dd82f56bd813aacc570e172cefe55a8a41504.tar.bz2
bpo-36786: Run compileall in parallel during "make install" (GH-13078)
Diffstat (limited to 'Doc/library/compileall.rst')
-rw-r--r--Doc/library/compileall.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/compileall.rst b/Doc/library/compileall.rst
index 5e08616..bb5000a 100644
--- a/Doc/library/compileall.rst
+++ b/Doc/library/compileall.rst
@@ -158,7 +158,8 @@ Public functions
The argument *workers* specifies how many workers are used to
compile files in parallel. The default is to not use multiple workers.
If the platform can't use multiple workers and *workers* argument is given,
- then sequential compilation will be used as a fallback. If *workers* is
+ then sequential compilation will be used as a fallback. If *workers*
+ is 0, the number of cores in the system is used. If *workers* is
lower than ``0``, a :exc:`ValueError` will be raised.
*invalidation_mode* should be a member of the
@@ -184,6 +185,9 @@ Public functions
.. versionchanged:: 3.7
The *invalidation_mode* parameter was added.
+ .. versionchanged:: 3.8
+ Setting *workers* to 0 now chooses the optimal number of cores.
+
.. function:: compile_file(fullname, ddir=None, force=False, rx=None, quiet=0, legacy=False, optimize=-1, invalidation_mode=py_compile.PycInvalidationMode.TIMESTAMP)
Compile the file with path *fullname*. Return a true value if the file