Mailinglist Archive: opensuse-factory (914 mails)

< Previous Next >
Re: [opensuse-factory] Switching default python to Python 3
On 06/26/2017, 03:26 PM, jan matejek wrote:
* 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

Ugh, this will be tough.

An average system:

# grep '#!.*python$' /usr/bin/*|wc
107 182 4485
# grep '#!.*python[23]' /usr/bin/*|wc
51 52 1936

You can start with fixing llvm which:
* has "#!/usr/bin/env python" and "Requires Python 2.7"
* thus makes the whole Xorg world depend on python 2

I don't think it makes any sense to do the switch now or in the near future.

suse labs

< Previous Next >
Follow Ups