Because I was a little confused about find_installation() function, but your comment above clarifies.
Thanks! On Tue, Sep 10, 2019 at 11:24 AM Alexander Kanavin <[email protected]> wrote: > > The best way is like in your latest patch - inherit python3native and DEPENDS > = "python3". No need for further tweaks, why did you try them? > > Alex > > On Tue, 10 Sep 2019 at 15:59, Fabio Berton <[email protected]> > wrote: >> >> Adding python3-native doesn't work. >> >> Hmm... it seems that adding "export STAGING_LIBDIR = >> "${STAGING_LIBDIR_NATIVE}"" and removing python3 from DEPENDS worked. >> >> Alexander, I don't know what is the best way to do this, maybe you can >> help here. >> >> Thanks! >> >> On Tue, Sep 10, 2019 at 7:40 AM Alexander Kanavin >> <[email protected]> wrote: >> > >> > On Tue, 10 Sep 2019 at 11:50, Ross Burton <[email protected]> wrote: >> >> >> >> On 09/09/2019 19:41, Alexander Kanavin wrote: >> >> > and find_installation() method of meson does not merely look for the >> >> > native python binary, it runs the binary with a meson-supplied python >> >> > script designed to obtain all sorts of information, including >> >> > target-specific things that we patch native python to report. If the >> >> > target python installation is not present in sysroot, the script will >> >> > fail, and meson will declare that 'there is no valid installation of >> >> > python on your system'. >> >> >> >> So the python3-native pokes around the target python3 to get the right >> >> values? >> > >> > >> > Yes, if STAGING_LIBDIR is set, via this patch: >> > http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch >> > >> > (don't shoot the pianist, it was working like this pre-rewrite as well). >> > >> > Alex >> > -- >> > _______________________________________________ >> > Openembedded-core mailing list >> > [email protected] >> > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
