<div dir="ltr">On 18 October 2017 at 22:07, Alejandro Hernandez <span dir="ltr">&lt;<a href="mailto:alejandro.hernandez@linux.intel.com" target="_blank">alejandro.hernandez@linux.intel.com</a>&gt;</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 &#39;1s|^#!.*|#!/usr/bin/env python3|&#39; $PYTHSCRIPT<br>
  Â  Â  Â  done<br>
<br>
-  Â  Â  Â # Tests are large and we don&#39;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>
+  Â  Â  Â  # &quot;nativepython&quot; 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>