Globally-visible executables with parallel python 2 and python 3 stacks

Till Maas opensource at till.name
Sat Jan 16 09:57:13 UTC 2010


On Sat, Jan 16, 2010 at 11:14:53AM +0200, Ville Skyttä wrote:
> On Friday 15 January 2010, Jesse Keating wrote:
> 
> > Alternatives is system wide, but it can be per application.
> 
> Per application alternatives, as in alternatives(8)?  How?

If two versions of each application with different shebangs are
installed:
/usr/bin/foo.python3
/usr/bin/foo.python2
/usr/bin/foo -> /usr/bin/foo.python3
/usr/bin/bar.python2
/usr/bin/bar.python3
/usr/bin/bar -> /usr/bin/bar.python2

I guess, this is also possible:
Each application has a unique shebang, e.g. for /usr/bin/bar:
#! /usr/bin/python.bar
then /usr/bin/python.bar can be made to either point to /usr/bin/python
or /usr/bin/python3 using alternatives.

Regards
Till
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20100116/207a5400/attachment.bin 


More information about the devel mailing list