Re: [arch-general] An archlinux-python package for managing system default python version?

2015-01-23 Thread 杨令
> From: Chi Hsuan Yen > To: General Discussion about Arch Linux > Cc: > Date: Fri, 23 Jan 2015 21:51:00 +0800 > Subject: [arch-general] An archlinux-python package for managing system default python version? > Dear Arch enthusiasts, > > The package extra/java-runtime-common provides a convenient

Re: [arch-general] An archlinux-python package for managing system default python version?

2015-01-23 Thread fabien boitier
On 23/01/15 at 09:51pm, Chi Hsuan Yen wrote: > Dear Arch enthusiasts, > > The package extra/java-runtime-common provides a convenient script > archlinux-java to handle co-existing JDK/JRE versions. I can use it to > switch between different versions of java implementations to accomplish > numerous

Re: [arch-general] An archlinux-python package for managing system default python version?

2015-01-23 Thread Eli Schwartz
On Fri, Jan 23, 2015 at 12:42 PM, Chi Hsuan Yen wrote: > > 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

Re: [arch-general] An archlinux-python package for managing system default python version?

2015-01-23 Thread Chi Hsuan Yen
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 pyt

Re: [arch-general] An archlinux-python package for managing system default python version?

2015-01-23 Thread Eli Schwartz
On Fri, Jan 23, 2015 at 8:07 AM, Martti Kühne 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

Re: [arch-general] An archlinux-python package for managing system default python version?

2015-01-23 Thread Chi Hsuan Yen
Borja Thanks a lot for the information. This is exactly what I want. However, as Martti states, I hope such workarounds are not necessary anymore as soon as possible. On 24 January 2015 at 00:57, Borja wrote: > > Does this .bashrc hack for for you maybe? :-) > > > ## Toogle between python versio

Re: [arch-general] An archlinux-python package for managing system default python version?

2015-01-23 Thread Borja
Does this .bashrc hack for for you maybe? :-) ## Toogle between python versions python-toggle(){ local RED="\e[0;31m" local GREEN="\e[0;32m" local RESET="\e[0;0m" test -z "$1" || v="$1" local bins=('python' 'python-config' 'pip') cd /usr/bin for bin in ${bins[@]}; d

Re: [arch-general] An archlinux-python package for managing system default python version?

2015-01-23 Thread Pedro José Piquero Plaza
On Fri, 2015-01-23 at 22:48 +0800, Chi Hsuan Yen wrote: > On 23 January 2015 at 22:07, Martti Kühne wrote: > > > On Fri, Jan 23, 2015 at 2:51 PM, Chi Hsuan Yen wrote: > > > Dear Arch enthusiasts, > > > > > > The package extra/java-runtime-common provides a convenient script > > > archlinux-java

Re: [arch-general] An archlinux-python package for managing system default python version?

2015-01-23 Thread Chi Hsuan Yen
On 23 January 2015 at 22:07, Martti Kühne wrote: > On Fri, Jan 23, 2015 at 2:51 PM, Chi Hsuan Yen wrote: > > Dear Arch enthusiasts, > > > > The package extra/java-runtime-common provides a convenient script > > archlinux-java to handle co-existing JDK/JRE versions. I can use it to > > switch bet

Re: [arch-general] An archlinux-python package for managing system default python version?

2015-01-23 Thread Martti Kühne
On Fri, Jan 23, 2015 at 2:51 PM, Chi Hsuan Yen wrote: > Dear Arch enthusiasts, > > The package extra/java-runtime-common provides a convenient script > archlinux-java to handle co-existing JDK/JRE versions. I can use it to > switch between different versions of java implementations to accomplish >

[arch-general] An archlinux-python package for managing system default python version?

2015-01-23 Thread Chi Hsuan Yen
Dear Arch enthusiasts, The package extra/java-runtime-common provides a convenient script archlinux-java to handle co-existing JDK/JRE versions. I can use it to switch between different versions of java implementations to accomplish numerous tasks from testing the compatibilities of my programs to