On 9/19/22 07:16, Simon Lees wrote:
On openSUSE we have made the decision that /usr/bin/python will always be python 2, changing the shebang to /usr/bin/python3 provides a clear sign that the code has been ported. In the world outside openSUSE some distro's have done what we have and chosen to keep it as python 2 only while on others it changed to pointing to python3 when they made it there default.
That's worth it's weight in gold. A clean way to go and avoids having to change the executable for all other packages (we know there are some helper packages, etc.. that are still python2) I've seen distros do the naming python2/python3, but just using python3 for python 3 make more sense. Either are doable. The good new here is we have the pronouncement from on-high about how it works on openSUSE -- that removes any uncertainty. Roger, I you have one app that needs a name change, then it may be worth a small script where you can rewrite the python name as needed as a one-off for launching whatever it is without having to drop a system-wide softlink. (though that is also an option if you have a slew of packages looking for 'python2' or 'python27' -- or whatever it may be. I just try and minimize those. -- David C. Rankin, J.D.,P.E.