Python 3 support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | wic: replace print statements with print functionscripts/ scripts/ scripts/ +1 more | +37 | 0 replies | |
| 2/14 | wic: use items instead of iteritemsscripts/ scripts/ scripts/ +1 more | +5 | 0 replies | |
| 3/14 | wic: don't use dict.keys and dict.has_keyscripts/ scripts/ scripts/ | +5 | 0 replies | |
| 4/14 | wic: don't inherit classes from objectscripts/ scripts/ scripts/ +3 more | +6 | 0 replies | |
| 5/14 | wic: remove with_statement importsscripts/ | +0 | 0 replies | |
| 6/14 | wic: use new syntax of 'except' statementscripts/ scripts/ scripts/ | +3 | 0 replies | |
| 7/14 | wic: remove unused functionsscripts/ | +1 | 0 replies | |
| 8/14 | wic: refactor pluginbasescripts/ | +14 | 0 replies | |
| 9/14 | wic: don't use L suffix for integersscripts/ | +4 | 0 replies | |
| 10/14 | wic: use find_executable in favor of bb.utils.whichscripts/ | +2 | 0 replies | |
| 11/14 | wic: use // operator instead of /scripts/ scripts/ | +10 | 0 replies | |
| 12/14 | wic: decode output of subprocess.communicatescripts/ | +2 | 0 replies | |
| 13/14 | wic: don't encode unicode stringsscripts/ | +0 | 0 replies | |
| 14/14 | wic: use next builtin instead of .next methodscripts/ scripts/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [wic][PATCH 00/14] Python 3 support
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(-)
Signature · 1 line
2.1.4