[Buildroot] [RFC PATCH 1/1] support: utils: Use python3

Edgar Bonet bonet at grenoble.cnrs.fr
Wed Sep 15 08:49:44 UTC 2021


Hi!

David asked:
> Doesn't python3 just get installed as python?

On Ubuntu and Debian Bullseye, the Python 3 interpreter is installed as
python3, and Python 2, if requested, is installed as python2. All
packaged Python scripts explicitly request either python3 or, for some
legacy packages, python2.

There are two optional packages named python-is-python2 and
python-is-python3 that install a symlink named "python" pointing to
either python2 or python3. These are intended for compatibility with
non-Ubuntu or non-Debian scripts that call the unversioned "python".
They are, obviously, incompatible with one another.

On Ubuntu and Debian, at least, it is then preferred to explicitly
request either python2 or python3 as the interpreter.

Regards,

Edgar.


More information about the buildroot mailing list