summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-11-14 12:43:45 (GMT)
committerGitHub <noreply@github.com>2022-11-14 12:43:45 (GMT)
commit9a7e9f9921804f3f90151ca42703e612697dd430 (patch)
treeb33c5a5d0b5c2e38a7be7649156dbd4bdea5eded /Doc
parentf15a0fcb1d13d28266f3e97e592e919b3fff2204 (diff)
downloadcpython-9a7e9f9921804f3f90151ca42703e612697dd430.zip
cpython-9a7e9f9921804f3f90151ca42703e612697dd430.tar.gz
cpython-9a7e9f9921804f3f90151ca42703e612697dd430.tar.bz2
gh-99289: Add COMPILEALL_OPTS to Makefile (#99291)
Add COMPILEALL_OPTS variable in Makefile to override compileall options (default: -j0) in "make install". Also merge the compileall commands into a single command building PYC files for the all optimization levels (0, 1, 2) at once. Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/using/configure.rst7
-rw-r--r--Doc/whatsnew/3.12.rst6
2 files changed, 13 insertions, 0 deletions
diff --git a/Doc/using/configure.rst b/Doc/using/configure.rst
index 860378c..0922972 100644
--- a/Doc/using/configure.rst
+++ b/Doc/using/configure.rst
@@ -767,6 +767,13 @@ Compiler flags
.. versionadded:: 3.5
+.. envvar:: COMPILEALL_OPTS
+
+ Options passed to the :mod:`compileall` command line when building PYC files
+ in ``make install``. Default: ``-j0``.
+
+ .. versionadded:: 3.12
+
.. envvar:: EXTRA_CFLAGS
Extra C compiler flags.
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index e5782ad..d30e419 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -675,6 +675,12 @@ Build Changes
if the Clang compiler accepts the flag.
(Contributed by Dong-hee Na in :gh:`89536`.)
+* Add ``COMPILEALL_OPTS`` variable in Makefile to override :mod:`compileall`
+ options (default: ``-j0``) in ``make install``. Also merged the 3
+ ``compileall`` commands into a single command to build .pyc files for all
+ optimization levels (0, 1, 2) at once.
+ (Contributed by Victor Stinner in :gh:`99289`.)
+
C API Changes
=============