<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 12 October 2016 at 09:31, Robert Yang <span dir="ltr">&lt;<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Its Makefile&#39;s do_install creates .pyc files for python3, now also<br>
create them for python2 so that they will be recorded by manifest, and<br>
can be cleaned correctly.</blockquote><div><br></div><div>So this is about autotools byte-compiling for python3 at install time and then something using those python modules with python2 during the build? </div><div><br></div><div>I wonder if this is something that should/can be solved in a more generic way? Alternatively, is the xcbgen user something in oe-core and can we tell it to not use python2?</div><div><br></div><div>- Jussi</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Signed-off-by: Robert Yang &lt;<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>&gt;<br>
---<br>
 meta/recipes-graphics/xorg-pr<wbr>oto/<a href="http://xcb-proto_1.12.bb" rel="noreferrer" target="_blank">xcb-proto_1.12.bb</a> | 8 ++++++++<br>
 1 file changed, 8 insertions(+)<br>
<br>
diff --git a/meta/recipes-graphics/xorg-p<wbr>roto/<a href="http://xcb-proto_1.12.bb" rel="noreferrer" target="_blank">xcb-proto_1.12.bb</a> b/meta/recipes-graphics/xorg-p<wbr>roto/<a href="http://xcb-proto_1.12.bb" rel="noreferrer" target="_blank">xcb-proto_1.12.bb</a><br>
index 8bdca32..54988fc 100644<br>
--- a/meta/recipes-graphics/xorg-p<wbr>roto/<a href="http://xcb-proto_1.12.bb" rel="noreferrer" target="_blank">xcb-proto_1.12.bb</a><br>
+++ b/meta/recipes-graphics/xorg-p<wbr>roto/<a href="http://xcb-proto_1.12.bb" rel="noreferrer" target="_blank">xcb-proto_1.12.bb</a><br>
@@ -28,3 +28,11 @@ RDEPENDS_${PN}-dev = &quot;&quot;<br>
 RRECOMMENDS_${PN}-dbg = &quot;${PN}-dev (= ${EXTENDPKGV})&quot;<br>
<br>
 BBCLASSEXTEND = &quot;native nativesdk&quot;<br>
+<br>
+do_install_append() {<br>
+    # Makefile&#39;s do_install creates .pyc files for python3, now also create<br>
+    # them for python2 so that they will be recorded by manifest, and can be<br>
+    # cleaned correctly.<br>
+    cd  ${D}${libdir}/xcb-proto/xcbgen<br>
+    python -m py_compile *.py<br>
+}<br>
<span class="m_708345975110919641m_3612041496741962596HOEnZb"><font color="#888888">--<br>
2.9.0<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openem<wbr>bedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</font></span></blockquote></div><br></div></div>