[New-bugs-announce] [issue38112] Compileall improvements

Petr Viktorin report at bugs.python.org
Wed Sep 11 10:01:19 EDT 2019

New submission from Petr Viktorin <encukou at gmail.com>:

In Fedora, we've long used a Bash script to compile modules to bytecode, as the compileall module was historically unsuitable.
Recently, Lumír re-wrote our enhancements to compileall, and published the result as compileall2 on PyPI. We'd like to get the improvements back into the standard library so everyone can benefit.
The improvements are:

- Raise the default recursion limit 
- Control of the path baked into the *.pyc file (`-s` to strip a prefix; `-p` to prepend a new one) to support different build/install locations.
- Compiling for multiple optimization levels at once (by specifying -o multiple times)

A PR should follow shortly.

components: Installation
messages: 351887
nosy: petr.viktorin
priority: normal
severity: normal
status: open
title: Compileall improvements

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list