<div dir="ltr"><div dir="ltr">On Tue, 10 Sep 2019 at 11:50, Ross Burton <<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 09/09/2019 19:41, Alexander Kanavin wrote:<br>
> and find_installation() method of meson does not merely look for the <br>
> native python binary, it runs the binary with a meson-supplied python <br>
> script designed to obtain all sorts of information, including <br>
> target-specific things that we patch native python to report. If the <br>
> target python installation is not present in sysroot, the script will <br>
> fail, and meson will declare that 'there is no valid installation of <br>
> python on your system'.<br>
<br>
So the python3-native pokes around the target python3 to get the right <br>
values?<br></blockquote><div><br></div><div>Yes, if STAGING_LIBDIR is set, via this patch:</div><a href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch</a></div><div class="gmail_quote"><br></div><div class="gmail_quote">(don't shoot the pianist, it was working like this pre-rewrite as well).</div><div class="gmail_quote"><br></div><div class="gmail_quote">Alex<br></div></div>