[OE-core] [PATCH 1/4] xcb-proto: create .pyc files for python2
Robert Yang
liezhi.yang at windriver.com
Wed Oct 12 06:31:26 UTC 2016
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>
---
meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb | 8 ++++++++
1 file changed, 8 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..54988fc 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,11 @@ 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.
+ cd ${D}${libdir}/xcb-proto/xcbgen
+ python -m py_compile *.py
+}
--
2.9.0
More information about the Openembedded-core
mailing list