Re: [OE-core] python3: Allow to specify which pyc files to keep

Richard Purdie
2025-04-10T11:58:40Z

On Thu, 2025-04-10 at 04:36 -0700, Lukas Woodtli via lists.openembedded.org wrote:
>
> > Should we rather just package the higher level .pyc into their own packages?
>
>
> But this would include 3 additional packages. One for each optimization level.
> Embedded devices might have limited storage resources.
> Therefore, it makes sense to just include the .pyc files with the necessary optimization level to the image.
> And not all of them.

The nice thing with packages is that you can then choose to install
them or not. We'd want to default to not for these.

The key question is whether this level of configuration is generally
useful enough to be worth us maintaining it in OE-Core. I don't know if
this is something you needed for a one off investigation or that people
need it in general.

Cheers,

Richard