[OE-core] [PATCH] meta/classes/menson.bbclass: Add python3 dependency

Anibal Limon anibal.limon at linaro.org
Thu Jan 9 14:51:41 UTC 2020

On Thu, 9 Jan 2020 at 05:23, Alexander Kanavin <alex.kanavin at gmail.com>

> On Thu, 9 Jan 2020 at 02:43, Aníbal Limón <anibal.limon at 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_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.




> Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20200109/da56e604/attachment.html>

More information about the Openembedded-core mailing list