
Hello, 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 py2.
* 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 version
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 ;-) Regards, Christian Boltz -- Microsoft is not the Answer - Microsoft is the Question, and the Answer is no ! -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org