From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: openembedded-architecture
<openembedded-architecture@lists.openembedded.org>,
bitbake-devel <bitbake-devel@lists.openembedded.org>
Subject: Python 3 for Bitbake
Date: Wed, 04 May 2016 09:56:16 +0100 [thread overview]
Message-ID: <1462352176.18407.11.camel@linuxfoundation.org> (raw)
We've come to a cross roads for bitbake and python. Currently we run on
python 2.7 but python 2.x is getting old and we really need to move to
3.X.
Whilst there are a number of tools out there which can translate
between the two, we have the complexity that we have python both in
bitbake itself and spread throughout the metadata. We could try and
migrate, attempting to support both versions but it would require a lot
of effort and I'm not sure we get much return for it. Its more likely
we'd end up with a lot of subtle bugs.
An alternative is we just have a flag day and switch, putting in
patches to bitbake and the metadata to migrate to 3.X in one go. The
advantage of this is much cleaner code without any workarounds for
compatibility.
I did some work on this a couple of years ago, I've dusted off those
patches and improved upon them to get to the ones in:
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=rpurdie/wip
Right now, this is enough to be able to run "bitbake bash", there are a
ton of things which still need to be done. The patches above are rather
rough, the aim just being to find out if we can get the basics working
which it appears we can.
My proposal is we decide to have the flag day, we queue up the patches
on a python3 branch both in oe-core and bitbake, then we switch when we
get successful autobuilder builds. I'd ideally like to do this quite
soon and get one with it (within a few weeks), leaving plenty of time
to handle issues and the other changes planned for this release cycle
and give other layers time to adapt.
I will likely push things so the basics in the core work, I'll then
need help for things like toaster, the QA framework, the supporting
tools (devtool, recipetool and so on).
Does anyone object to this?
Cheers,
Richard
next reply other threads:[~2016-05-04 8:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-04 8:56 Richard Purdie [this message]
2016-05-04 21:19 ` Python 3 for Bitbake Christopher Larson
2016-05-04 21:29 ` [Openembedded-architecture] " Mark Hatle
2016-05-04 21:34 ` Burton, Ross
2016-05-05 5:10 ` Tim Orling
2016-05-06 8:40 ` Burton, Ross
2016-05-05 12:13 ` Philip Balister
2016-05-05 15:13 ` Mark Hatle
2016-05-05 15:18 ` Christopher Larson
2016-05-05 15:50 ` Otavio Salvador
2016-05-05 17:29 ` Jan-Simon Möller
2016-05-05 17:47 ` Otavio Salvador
2016-05-05 17:50 ` akuster
2016-05-09 20:39 ` Richard Purdie
2016-05-22 7:58 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1462352176.18407.11.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=bitbake-devel@lists.openembedded.org \
--cc=openembedded-architecture@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.