mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
bpo-40495: compileall option to hardlink duplicate pyc files (GH-19901)
compileall is now able to use hardlinks to prevent duplicates in a case when .pyc files for different optimization levels have the same content. Co-authored-by: Miro Hrončok <miro@hroncok.cz> Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
7443d42021
commit
e77d428856
6 changed files with 285 additions and 15 deletions
|
|
@ -245,6 +245,16 @@ that schedules a shutdown for the default executor that waits on the
|
|||
Added :class:`asyncio.PidfdChildWatcher`, a Linux-specific child watcher
|
||||
implementation that polls process file descriptors. (:issue:`38692`)
|
||||
|
||||
compileall
|
||||
----------
|
||||
|
||||
Added new possibility to use hardlinks for duplicated ``.pyc`` files: *hardlink_dupes* parameter and --hardlink-dupes command line option.
|
||||
(Contributed by Lumír 'Frenzy' Balhar in :issue:`40495`.)
|
||||
|
||||
Added new options for path manipulation in resulting ``.pyc`` files: *stripdir*, *prependdir*, *limit_sl_dest* parameters and -s, -p, -e command line options.
|
||||
Added the possibility to specify the option for an optimization level multiple times.
|
||||
(Contributed by Lumír 'Frenzy' Balhar in :issue:`38112`.)
|
||||
|
||||
concurrent.futures
|
||||
------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue