[Buildroot] [PATCH v2 0/4] pycompile: fix .pyc source paths + improvements
Robin Jarry
robin.jarry at 6wind.com
Tue Sep 8 08:10:22 UTC 2020
Hi all,
This series is about fixing the original .py source paths encoded into
.pyc files. It comes with small improvements on pycompile.py as well.
The first version of the patch was actually not working at all... No
.pyc file was compiled. We did not see it because
BR2_PACKAGE_PYTHON*_PYC_ONLY were not selected and therefore, the .pyc
files were generated automatically at runtime.
This v2 should work properly.
Robin Jarry (4):
pycompile: add main entry point
pycompile: sort imports
pycompile: fix .pyc original source file paths
pycompile: add --verbose option
package/python/python.mk | 6 +-
package/python3/python3.mk | 6 +-
support/scripts/pycompile.py | 158 +++++++++++++++++++++--------------
3 files changed, 104 insertions(+), 66 deletions(-)
Differences with v1:
* split in multiple commits
* fixed the script itself
* sorted imports at the top of the file
* added new --verbose option
--
2.28.0
More information about the buildroot
mailing list