[arch-general] simple trick to make dealing with python 2/3 scripts easier

Ben Booth benwbooth at gmail.com
Fri Aug 17 18:44:48 EDT 2012


Ben Booth wrote:

> Damjan wrote:
> 
>>> The only problem with
>>> this approach is that /usr/bin/python is owned by the python package, so
>>> if you upgrade the python package it might create problems. Any one know
>>> of some way to work around this problem?
>> 
>> Just put your script in /usr/local/bin
> 
> But then some scripts use #!/usr/bin/python. Putting it in /usr/local/bin
> would only work if the script uses #!/usr/local/bin/python or
> #!/usr/bin/env python.

Maybe I'll submit a feature request to the python package maintainer to see 
if they think it's a good idea.



More information about the arch-general mailing list