[OE-core] moving OpenEmbedded-core to Python 3

Khem Raj raj.khem at gmail.com
Fri Apr 29 20:43:51 UTC 2016


On Mon, Apr 25, 2016 at 5:22 AM, Alexander Kanavin
<alexander.kanavin at linux.intel.com> wrote:
> Hello everyone,
>
> we want to deprecate Python 2 in oe-core and set Python 3 as the default,
> preferred choice. What does this mean?
>
> 1) Introducing new Python 2 dependencies via new recipes or additional
> DEPENDS etc. in existing recipes will be discouraged: you'll have to provide
> a reason.
>
> 2) Bitbake itself is at the moment Python 2 only - which will be addressed.
>
> 3) OE-core recipes that are currently dependent on Python 2 will be moved to
> Python 3 whenever possible (e.g. when nothing in oe-core requires them to be
> built against python 2). This may break some of your code, so please do try
> any patchsets before they land in master (or stable release), and suggest
> alternatives.
>
> 4) Of course, there is a large mass of Python 2 code out there, which may
> never be ported to Python 3, so Python 2 will continue to be provided at
> least until it's no longer supported upstream (the current date is 2020).
>
> I'll prepare an initial patchset for review, so please keep an eye on it.
>

Can you clarify the scope, are you addressing the case where target
images would prefer python3
and you are making sure that packages that use python on target are
ready for using it.

bitbake itself is a separate task but then we do write scriptlets that
are executed as part of
build, are you addressing those too ?

Thirdly, there is general pythonic code in metadata meant to control
build policies

Which of these are you addressing specifically.


>
> Thanks,
> Alex
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list