Mailinglist Archive: opensuse-factory (914 mails)

< Previous Next >
Re: [opensuse-factory] Switching default python to Python 3

Am Montag, 26. Juni 2017, 15:26:12 CEST schrieb jan matejek:
* /usr/bin/python will be switched to point to /usr/bin/python3. Other
unversioned python binaries will also be switched.
* Stuff will break! The breakage will be contained to a testing
project at first.

I really like the switch to py3, but I don't like the "Stuff will break"
part ;-)

Especially switching the /usr/bin/python symlink to py3 sounds like it
will break *lots of* things because everybody expects it to point it to

* note that if a script is using "/usr/bin/python" as shebang (or
worse, "/usr/bin/env python"), it's already wrong. The shebang must be
versioned, unless the script actually works with an arbitrary python

Is there a way to check all packages for unversioned python shebangs?
(Install and grep them all, add a rpmlint check, whatever?)

After collecting this information, contact the package maintainers and
ask them to fix the shebang (ideally by putting py3 there ;-)

That would be much better (and less painful) than finding all the
breakage after doing the switch ;-)


Christian Boltz
Microsoft is not the Answer -
Microsoft is the Question,
and the Answer is no !
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups