[Buildroot] [PATCH 1/2] target-finalize: generate all *.pyc

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Mar 9 21:46:29 UTC 2015


Dear Arnout Vandecappelle,

On Mon, 09 Mar 2015 22:42:04 +0100, Arnout Vandecappelle wrote:

> > Why not, but then don't we want to do something in the Python package
> > infra, and in the Python 2/3 packages themselves to avoid spending time
> > biulding the .pyc files?
> 
>  compileall will check timestamps to avoid recompiling unnecessarily. So you
> just have the tree walk to consider, which I think is a minor issue.

Ah, good to know. Then indeed it's useless to do any special trick:
let's just call compileall as a target finalize hook.

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


More information about the buildroot mailing list