<div dir="ltr">On 18 October 2017 at 22:07, Alejandro Hernandez <span dir="ltr"><<a href="mailto:alejandro.hernandez@linux.intel.com" target="_blank">alejandro.hernandez@linux.intel.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">@@ -77,8 +75,30 @@ do_install() {<br>
        sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT<br>
    done<br>
<br>
-Â Â Â Â # Tests are large and we don't need them in the native sysroot<br>
-Â Â Â Â rm ${D}${libdir}/python${PYTHON_<wbr>MAJMIN}/test -rf<br>
+Â Â Â Â # Add a symlink to the native Python so that scripts can just invoke<br>
+Â Â Â Â # "nativepython" and get the right one without needing absolute paths<br>
+Â Â Â Â # (these often end up too long for the #! parser in the kernel as the<br>
+Â Â Â Â # buffer is 128 bytes long).<br>
+Â Â Â Â ln -s python3-native/python3 ${D}${bindir}/nativepython3<br>
</blockquote><div><br></div><div>Is that rm of the tests redundant?</div><div><br></div><div>Ross</div><div><br></div></div></div></div>