[arch-general] An archlinux-python package for managing system default python version?
Chi Hsuan Yen
yan12125 at gmail.com
Fri Jan 23 18:42:11 UTC 2015
I mean, all python scripts should explicitly specify which python version
to use rather than "python" only. However, the system default symlink is
still necessary for invoking scripts. A system should provide a simple and
stupid way for python users without enforcing the knownledge of different
python versions. As python evolves, end users can still invoke python
scripts without change their command lines. After all, such settings can
provide a continuous and reliable environment. I need this workaround due
to the convenience for building CyanogenMod. The correct way may be submit
a bug report to Google, but, however, it's too long to get them all be
On 24 January 2015 at 02:17, Eli Schwartz <eschwartz93 at gmail.com> wrote:
> On Fri, Jan 23, 2015 at 8:07 AM, Martti Kühne <mysatyre at gmail.com> wrote:
> > Python actively encourages you to write the python shebang explicitly
> > either #!/usr/bin/env python2 or #!/usr/bin/env python3 for scripts
> > that are not compatible with one of them. It is no longer practical to
> > make any assumptions about the python version in the (unversioned)
> > python binary, therefore your argument about java doesn't hold. Since
> > the developers themselves support this conclusion , there is no
> > reason to still have the symlink and hence we should actually abolish
> > it completely, which I expect to happen in the long run.
> >  https://www.python.org/dev/peps/pep-0394/
> Actually, I believe the default /usr/bin/python symlink makes sense to
> have, in order to be used for python scripts that don't care which python
> they use.
> Let us assume someone has only python3 or python2, does it make sense to
> prevent people from using polyglot code simply because an arbitrary
> decision was made to assume one or the other is the official python version
> to run the code under?
> -- Eli Schwartz
More information about the arch-general