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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: pgpjRqZsUJrr2.pgp
Description: PGP signature

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux