From: Ed Bartosh <ed.bartosh@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [wic][PATCH 00/14] Python 3 support
Date: Wed, 4 May 2016 16:06:13 +0300 [thread overview]
Message-ID: <cover.1462365339.git.ed.bartosh@linux.intel.com> (raw)
Hi,
This is a first set of changes implementing Python 3 support for wic.
As bitbake codebase is not ported to Python 3 yet I tried to avoid
using bitbake APIs as much as possible.
With this set of changes wic can be run on both Python 2 and Python 3.
These commands work and produce rootfs of the same size:
python3.4 ../scripts/wic create my-kickstart-file.wks -e core-image-minimal -v ./tmp/sysroots/qemux86-64/imgdata/ -o img/
python2.7 ../scripts/wic create my-kickstart-file.wks -e core-image-minimal -v ./tmp/sysroots/qemux86-64/imgdata/ -o img/
Functionality that requires bb/lib such es wic -e <image> doesn't work.
The following changes since commit 7587285a21cd1e3465640bf9871f3fd65cca4e07:
scripts/lib/bsp/kernel.py: force patching when branch is machine branch is re-use (2016-04-29 12:11:20 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib ed/wic/python3-9412
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/wic/python3-9412
Ed Bartosh (14):
wic: replace print statements with print function
wic: use items instead of iteritems
wic: don't use dict.keys and dict.has_key
wic: don't inherit classes from object
wic: remove with_statement imports
wic: use new syntax of 'except' statement
wic: remove unused functions
wic: refactor pluginbase
wic: don't use L suffix for integers
wic: use find_executable in favor of bb.utils.which
wic: use // operator instead of /
wic: decode output of subprocess.communicate
wic: don't encode unicode strings
wic: use next builtin instead of .next method
scripts/lib/wic/conf.py | 2 +-
scripts/lib/wic/creator.py | 4 +-
scripts/lib/wic/engine.py | 20 ++++-----
scripts/lib/wic/filemap.py | 16 +++----
scripts/lib/wic/help.py | 4 +-
scripts/lib/wic/imager/baseimager.py | 5 +--
scripts/lib/wic/imager/direct.py | 2 +-
scripts/lib/wic/ksparser.py | 10 ++---
scripts/lib/wic/msger.py | 78 +---------------------------------
scripts/lib/wic/partition.py | 2 +-
scripts/lib/wic/plugin.py | 10 ++---
scripts/lib/wic/pluginbase.py | 42 ++++++------------
scripts/lib/wic/utils/oe/misc.py | 18 +++-----
scripts/lib/wic/utils/partitionedfs.py | 14 +++---
scripts/lib/wic/utils/runner.py | 6 +--
scripts/wic | 43 ++++++++++---------
16 files changed, 91 insertions(+), 185 deletions(-)
--
2.1.4
next reply other threads:[~2016-05-04 15:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-04 13:06 Ed Bartosh [this message]
2016-05-04 13:06 ` [wic][PATCH 01/14] wic: replace print statements with print function Ed Bartosh
2016-05-04 13:06 ` [wic][PATCH 02/14] wic: use items instead of iteritems Ed Bartosh
2016-05-04 13:06 ` [wic][PATCH 03/14] wic: don't use dict.keys and dict.has_key Ed Bartosh
2016-05-04 13:06 ` [wic][PATCH 04/14] wic: don't inherit classes from object Ed Bartosh
2016-05-04 13:06 ` [wic][PATCH 05/14] wic: remove with_statement imports Ed Bartosh
2016-05-04 13:06 ` [wic][PATCH 06/14] wic: use new syntax of 'except' statement Ed Bartosh
2016-05-04 13:06 ` [wic][PATCH 07/14] wic: remove unused functions Ed Bartosh
2016-05-04 13:06 ` [wic][PATCH 08/14] wic: refactor pluginbase Ed Bartosh
2016-05-04 13:06 ` [wic][PATCH 09/14] wic: don't use L suffix for integers Ed Bartosh
2016-05-04 13:06 ` [wic][PATCH 10/14] wic: use find_executable in favor of bb.utils.which Ed Bartosh
2016-05-04 13:06 ` [wic][PATCH 11/14] wic: use // operator instead of / Ed Bartosh
2016-05-04 13:06 ` [wic][PATCH 12/14] wic: decode output of subprocess.communicate Ed Bartosh
2016-05-04 13:06 ` [wic][PATCH 13/14] wic: don't encode unicode strings Ed Bartosh
2016-05-04 13:06 ` [wic][PATCH 14/14] wic: use next builtin instead of .next method Ed Bartosh
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=cover.1462365339.git.ed.bartosh@linux.intel.com \
--to=ed.bartosh@linux.intel.com \
--cc=openembedded-core@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox