pycompile: allow to force compilation
commit6e45c5500ba31890d7f91c1c4ad50d314715affc
authorJérôme Pouiller <jezz@sysmic.org>
Tue, 20 Dec 2016 13:46:22 +0000 (20 14:46 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 20 Mar 2017 22:00:25 +0000 (20 23:00 +0100)
treef269414532cc5fe93dad3a5293971bdb411c5ed9
parent6a4131d101cf0d8bc35ce15672524f144c925fc3
pycompile: allow to force compilation

By default, compile_dir() relies on the modification time to know if a
python file has to be built again. However in some circumstances (when
doing reproducible builds), modification times are not reliable. Thus,
this patch adds a way to force the rebuild of all python sources.

Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/pycompile.py