diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-09-22 02:36:55 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-10-15 10:01:43 +0100 |
commit | a489cb14b99e91b3afa72f767364913446aa2483 (patch) | |
tree | 651a1df6a24491a978967aa57224949cc5aa6983 /meta/recipes-graphics/xorg-proto | |
parent | 49d189e2415137d2091d72c3c7fd0dd45f53d908 (diff) | |
download | poky-a489cb14b99e91b3afa72f767364913446aa2483.tar.gz |
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>
Diffstat (limited to 'meta/recipes-graphics/xorg-proto')
-rw-r--r-- | 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 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 = "" | |||
28 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" | 28 | RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" |
29 | 29 | ||
30 | BBCLASSEXTEND = "native nativesdk" | 30 | BBCLASSEXTEND = "native nativesdk" |
31 | |||
32 | do_install_append() { | ||
33 | # Makefile's do_install creates .pyc files for python3, now also create | ||
34 | # them for python2 so that they will be recorded by manifest, and can be | ||
35 | # cleaned correctly. | ||
36 | python -m py_compile ${D}${libdir}/xcb-proto/xcbgen/*.py | ||
37 | } | ||