[Buildroot] [PATCH v4] python: rework *.pyc files generation

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Dec 11 22:32:42 UTC 2015


Samuel,

On Fri, 11 Dec 2015 23:22:52 +0100, Samuel Martin wrote:

> AFAI have tested, this change works as expected, except for broken
> python modules.
> In such cases, 'compileall.compile_dir(...)' does not raise any
> exceptions when it failed to compile the *.py file, leading to the
> unfortunate consequence: the *.pyc file is not generated and the *.py
> file is lost if BR2_PACKAGE_PYTHON_PYC_ONLY is enabled.

Do you have some specific examples that exhibit this behavior?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list