[oe-commits] [openembedded-core] 15/32: xcb-proto: create .pyc files for python2
git at git.openembedded.org
git at git.openembedded.org
Sat Oct 15 09:06:00 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit 3007f8b365270c35fdb1829d83affd98d8d5475a
Author: Robert Yang <liezhi.yang at windriver.com>
AuthorDate: Thu Sep 22 02:36:55 2016 -0700
xcb-proto: create .pyc files for python2
Its Makefile's do_install creates .pyc files for python3, now also
create them for python2 so that they will be recorded by manifest, and
can be cleaned correctly.
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb b/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb
index 8bdca32..7d4a6b4 100644
--- a/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb
+++ b/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb
@@ -28,3 +28,10 @@ RDEPENDS_${PN}-dev = ""
RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
BBCLASSEXTEND = "native nativesdk"
+
+do_install_append() {
+ # Makefile's do_install creates .pyc files for python3, now also create
+ # them for python2 so that they will be recorded by manifest, and can be
+ # cleaned correctly.
+ python -m py_compile ${D}${libdir}/xcb-proto/xcbgen/*.py
+}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list