]> code.ossystems Code Review - openembedded-core.git/commitdiff
python: recompile _sysconfigdata.py after modifying it
authorRoss Burton <ross.burton@intel.com>
Wed, 7 Sep 2016 14:05:02 +0000 (15:05 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Sep 2016 23:31:38 +0000 (00:31 +0100)
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 <ross.burton@intel.com>
meta/recipes-devtools/python/python_2.7.12.bb

index 3ee1e38b66385861c63e10b95973f5f1fb3a3a51..65b571719b10107bbd5f7efe0481456e548bdc4a 100644 (file)
@@ -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