On Thu, 9 Jan 2020 at 05:23, Alexander Kanavin <alex.kana...@gmail.com> wrote:
> On Thu, 9 Jan 2020 at 02:43, Aníbal Limón <anibal.li...@linaro.org> wrote: > >> -DEPENDS_append = " meson-native ninja-native" >> +DEPENDS_append = " meson-native ninja-native python3" >> > > Apologies, but I cannot accept this. Not all meson-based components even > ask for python, and this adds a non-trivial (built time wise) target > dependency to them all. There is also the potential to create circular > dependencies some time in the future if something required by target python > switches over to meson. > > I suggest you rather patch meson itself, so that the python probe > implemented there does not import a target module. > This issue comes from python3native.bbclass when use python target library and include dirs and set _sysconfigdata too. ... export PYTHON_LIBRARY="${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so" export PYTHON_INCLUDE_DIR="${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}" export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" ... Menson python module uses it to get python interpreter information to build [1], I agree that not all recipes uses menson + python but it is a single point to patch. I understand the implications of build time being increase so the other option is to add the dependency only on waffle. Comments? Regards, Anibal [1] https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/python.py#L262 > > Alex >
-- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core