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

akuster808 akuster808 at gmail.com
Mon Apr 25 15:11:03 UTC 2016



On 04/25/2016 05:22 AM, Alexander Kanavin 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?

What is the target to make  Python3 default, 2.2?

> 
> 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.

Will there be any kind of QA warning for these dependencies? this will
help  scope how many recipes need to be looked at. there are a lot of
layers out there.

> 
> 2) Bitbake itself is at the moment Python 2 only - which will be addressed.

What will the env setup script display then?

> 
> 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.

thanks for doing the the initial work.

- armin
> 
> 
> Thanks,
> Alex



More information about the Openembedded-core mailing list