summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorLumír 'Frenzy' Balhar <frenzy.madness@gmail.com>2019-09-26 06:28:26 (GMT)
committerPetr Viktorin <encukou@gmail.com>2019-09-26 06:28:26 (GMT)
commit8e7bb991de7c88583bc6663d8bbc541054ca8dc4 (patch)
tree86735266d142f3ab044219796ca1ad5400b72606 /Misc
parent52b940803860e37bcc3f6096b2d24e7c20a0e807 (diff)
downloadcpython-8e7bb991de7c88583bc6663d8bbc541054ca8dc4.zip
cpython-8e7bb991de7c88583bc6663d8bbc541054ca8dc4.tar.gz
cpython-8e7bb991de7c88583bc6663d8bbc541054ca8dc4.tar.bz2
bpo-38112: Compileall improvements (GH-16012)
* Raise the limit of maximum path depth to actual recursion limit * Add posibilities to adjust a path compiled in .pyc file. Now, you can: - Strip a part of path from a beggining of path into compiled file example "-s /test /test/build/real/test.py" → "build/real/test.py" - Append some new path to a beggining of path into compiled file example "-p /boo real/test.py" → "/boo/real/test.py" You can also use both options in the same time. In that case, striping is done before appending. * Add a possibility to specify multiple optimization levels Each optimization level then leads to separated compiled file. Use `action='append'` instead of `nargs='+'` for the -o option. Instead of `-o 0 1 2`, specify `-o 0 -o 1 -o 2`. It's more to type, but much more explicit. * Add a symlinks limitation feature This feature allows us to limit byte-compilation of symbolic links if they are pointing outside specified dir (build root for example).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-09-24-10-55-01.bpo-38112.2EinX9.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-09-24-10-55-01.bpo-38112.2EinX9.rst b/Misc/NEWS.d/next/Library/2019-09-24-10-55-01.bpo-38112.2EinX9.rst
new file mode 100644
index 0000000..ea49898
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-09-24-10-55-01.bpo-38112.2EinX9.rst
@@ -0,0 +1,3 @@
+:mod:`compileall` has a higher default recursion limit and new command-line
+arguments for path manipulation, symlinks handling, and multiple
+optimization levels.