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>
This commit is contained in:
Robert Yang 2016-09-22 02:36:55 -07:00 committed by Richard Purdie
parent 49d189e241
commit a489cb14b9
1 changed files with 7 additions and 0 deletions

View File

@ -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
}