How to add python modules into kas container

47 views
Skip to first unread message

Gavin Gao

unread,
Apr 9, 2024, 5:29:19 AM4/9/24
to kas-...@googlegroups.com
Hi Guys,

Firstly, I want to thank you for creating this great project to make yocto build more flexible and reproducible.
Secondly, I have a little trouble needing you to provide some export comments.
I'm trying to build some recipes which depend on the native python-ply module. Is there any way to easily add this module into kas container image?

Best Regards
Gavin Gao

Jan Kiszka

unread,
Apr 9, 2024, 12:43:21 PM4/9/24
to Gavin Gao, kas-devel
[Grr, managed to send privately only, resending]

On 09.04.24 11:29, Gavin Gao wrote:
> Hi Guys,
>
> Firstly, I want to thank you for creating this great project to
> make yocto build more flexible and reproducible.

Thanks, great to hear!

> Secondly, I have a little trouble needing you to provide some export
> comments.
> I'm trying to build some recipes which depend on the native python-ply
> module. Is there any way to easily add this module into kas container image?
>

kas provides containers that come basically with the generic
dependencies of yocto/OE (and isar). If you need further packages to
build a recipe, you either build them via yocto (*-native) or you
actually have to fork you own container on top of kas. The latter is
rather unhandy, and I would try to go the former way - or convince
upstream OE that your feature and its dependencies are a common need and
should be merged there.

Jan

--
Siemens AG, Technology
Linux Expert Center

Gavin Gao

unread,
Apr 10, 2024, 12:50:13 AM4/10/24
to Jan Kiszka, kas-devel
Hi Jan,

Thank you very much.
The problem was fixed after updating the bb file to depend on the native python modules.

+ inherit python3native
+ DEPENDS += "python3-ply-native"

Best Regards
Gavin Gao

Reply all
Reply to author
Forward
0 new messages