[OE-core] [RFCv2 0/2] Support systems with python3 as default
Martin Hundebøll
martin at hundeboll.net
Thu Oct 30 10:43:23 UTC 2014
Since more distributions plan to move to python3, steps should be taken
to support such systems.
My previous attemt was pretty intrusive and changed all occurrences of
/usr/bin/{env ,}python to /usr/bin/env python2. Such apporach might break
on systems with no python2 alias in env, so here is a different approach.
Paul Braker suggested to auto-detect the available python version and
setup a fake environment, so I have given it a shot. This is quite simple
and much less intrusive than my first attempt. It utilizes the existing
bitbake env and simply tests a few different python names and, if a
compatible version is found, creates a symlink in ./bitbate/bin/python
Comments/suggestions are welcome!
Martin Hundebøll (2):
scripts: use '/usr/bin/env' in shebangs with python
scripts: modify environment to use python2 instead
bitbake/lib/progressbar.py | 2 +-
scripts/lib/wic/conf.py | 2 +-
scripts/lib/wic/creator.py | 2 +-
scripts/lib/wic/imager/baseimager.py | 2 +-
scripts/lib/wic/kickstart/__init__.py | 2 +-
.../lib/wic/kickstart/custom_commands/micboot.py | 2 +-
.../wic/kickstart/custom_commands/micpartition.py | 2 +-
scripts/lib/wic/msger.py | 2 +-
scripts/lib/wic/plugin.py | 2 +-
scripts/lib/wic/pluginbase.py | 2 +-
scripts/lib/wic/utils/errors.py | 2 +-
scripts/lib/wic/utils/fs_related.py | 2 +-
scripts/lib/wic/utils/misc.py | 2 +-
scripts/lib/wic/utils/partitionedfs.py | 2 +-
scripts/lib/wic/utils/runner.py | 2 +-
scripts/oe-buildenv-internal | 30 +++++---------
scripts/pybootchartgui/pybootchartgui.py | 2 +-
scripts/python-env.sh | 46 ++++++++++++++++++++++
18 files changed, 72 insertions(+), 36 deletions(-)
create mode 100755 scripts/python-env.sh
--
2.1.2
More information about the Openembedded-core
mailing list