This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: add configure option to control the groups of .pyc files to install
Type: enhancement Stage:
Components: Build Versions: Python 3.11
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, gregory.p.smith, pxinwr
Priority: normal Keywords:

Created on 2021-05-10 07:42 by pxinwr, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 23920 open pxinwr, 2021-05-10 07:42
Messages (3)
msg393356 - (view) Author: Peixing Xin (pxinwr) * Date: 2021-05-10 07:42
Currently when building and installing Python out of source, unoptimized .pyc files and 2 types of optimized .pyc files(*.opt-1.pyc and *.opt-2.pyc) are all compiled out and installed. So to reduce package size and build and installation time, we should provide an option in configure to control the groups of .pyc files to install. For  distribution case, normally only one type of .pyc files even none is needed.
msg393363 - (view) Author: Peixing Xin (pxinwr) * Date: 2021-05-10 08:00
For the configure option name used in PR# 23930, change it to "--enable-pyc-groups" is better? What is your advice?
msg393365 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-05-10 08:11
Please hold off with PR until we have agreed if we want this feature request makes sense at all. Linux distributions typically provide all pyc variants. There are also better ways to shrink code size, e.g. deduplication or compression.
Date User Action Args
2022-04-11 14:59:45adminsetgithub: 88263
2021-05-10 08:11:29christian.heimessetnosy: + christian.heimes
messages: + msg393365
2021-05-10 08:00:10pxinwrsetmessages: + msg393363
2021-05-10 07:46:17pxinwrsetnosy: + gregory.p.smith
2021-05-10 07:42:30pxinwrcreate