From: Ross Burton Date: Wed, 7 Sep 2016 14:05:02 +0000 (+0100) Subject: python: recompile _sysconfigdata.py after modifying it X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~24362 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66e55d3af7d7948869620ce24c06ba2bc705ae0a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git python: recompile _sysconfigdata.py after modifying it We sed this file after the .pyc has been generated, so re-compile the .pyc to ensure that it is up to date. Signed-off-by: Ross Burton --- diff --git a/meta/recipes-devtools/python/python_2.7.12.bb b/meta/recipes-devtools/python/python_2.7.12.bb index 3ee1e38b663..65b571719b1 100644 --- a/meta/recipes-devtools/python/python_2.7.12.bb +++ b/meta/recipes-devtools/python/python_2.7.12.bb @@ -132,6 +132,7 @@ py_package_preprocess () { sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \ ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile \ ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py + python -m py_compile ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py } require python-${PYTHON_MAJMIN}-manifest.inc