[oe-commits] [openembedded-core] 07/24: python: recompile _sysconfigdata.py after modifying it

git at git.openembedded.org git at git.openembedded.org
Wed Sep 7 23:37:50 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 66e55d3af7d7948869620ce24c06ba2bc705ae0a
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Wed Sep 7 15:05:02 2016 +0100

    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 <ross.burton at intel.com>
---
 meta/recipes-devtools/python/python_2.7.12.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/python/python_2.7.12.bb b/meta/recipes-devtools/python/python_2.7.12.bb
index 3ee1e38..65b5717 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list