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:
parent
49d189e241
commit
a489cb14b9
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue