<div dir="ltr"><div>The best way is like in your latest patch - inherit python3native and DEPENDS = "python3". No need for further tweaks, why did you try them?</div><div><br></div><div>Alex<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 10 Sep 2019 at 15:59, Fabio Berton <<a href="mailto:fabio.berton@ossystems.com.br">fabio.berton@ossystems.com.br</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Adding python3-native doesn't work.<br>
<br>
Hmm... it seems that adding "export STAGING_LIBDIR =<br>
"${STAGING_LIBDIR_NATIVE}"" and removing python3 from DEPENDS worked.<br>
<br>
Alexander, I don't know what is the best way to do this, maybe you can<br>
help here.<br>
<br>
Thanks!<br>
<br>
On Tue, Sep 10, 2019 at 7:40 AM Alexander Kanavin<br>
<<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>> wrote:<br>
><br>
> On Tue, 10 Sep 2019 at 11:50, Ross Burton <<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>> wrote:<br>
>><br>
>> 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>
><br>
><br>
> Yes, if STAGING_LIBDIR is set, via this patch:<br>
> <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" rel="noreferrer" target="_blank">http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch</a><br>
><br>
> (don't shoot the pianist, it was working like this pre-rewrite as well).<br>
><br>
> Alex<br>
> --<br>
> _______________________________________________<br>
> Openembedded-core mailing list<br>
> <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
> <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div>