[gnome-continuous-yocto/gnomeostree-3.28-rocko: 3015/8267] xcb-proto: create .pyc files for python2
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 3015/8267] xcb-proto: create .pyc files for python2
- Date: Sun, 17 Dec 2017 00:02:24 +0000 (UTC)
commit a489cb14b99e91b3afa72f767364913446aa2483
Author: Robert Yang <liezhi yang windriver com>
Date: 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.
(From OE-Core rev: 3007f8b365270c35fdb1829d83affd98d8d5475a)
Signed-off-by: Robert Yang <liezhi yang windriver com>
Signed-off-by: Ross Burton <ross burton intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
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
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]