From 3007f8b365270c35fdb1829d83affd98d8d5475a Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Thu, 22 Sep 2016 02:36:55 -0700 Subject: 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 Signed-off-by: Ross Burton --- 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 8bdca32b71..7d4a6b4364 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 +} -- cgit 1.2.3-korg