If you just install python3 in an image, there is no /usr/bin/python binary because that is only shipped by python (2). We should probably install that using alternatives instead. Default to python2 for now, and migrate to py3 later.
(In reply to comment #0) > If you just install python3 in an image, there is no /usr/bin/python binary > because that is only shipped by python (2). While a change to PEP 394 just 3 months ago removed the wording that /usr/bin/python should not point to python3,[1] some distributions like Debian/Ubuntu might never provide a python -> python3 symlink. [1] https://github.com/python/peps/commit/ae932bd6fd2c493d7d64ce328a5293bac4c48884 > We should probably install that using alternatives instead. Default to > python2 for now, and migrate to py3 later. With python3 installed, this would give a different python depending on whether or not there is some recipe from some layer installed that pulls in python2. And "migrate to py3 later" would then break all recipes in layers that ship python2 scripts with #!/usr/bin/python shebangs.
What Adrian said makes sense.