[Python-Dev] Support the /usr/bin/python2 symlink upstream

Nick Coghlan ncoghlan at gmail.com
Mon Mar 7 23:25:50 CET 2011

On Tue, Mar 8, 2011 at 1:30 AM, Barry Warsaw <barry at python.org> wrote:
> On Mar 04, 2011, at 12:00 PM, Toshio Kuratomi wrote:
>>Actually, my post was saying that these two can be decoupled.  ie: It's
>>possible to not have /usr/bin/python while still allowing users to type
>>python at a shell prompt and get the interpreter.
>>This is done by either redefining the PATH to include the directory that the
>>interpreter named "python" is in or by creating an alias for python to the
>>proper interpreter.
> I personally would prefer aliasing rather than $PATH manipulation.

Toshio's suggestion wouldn't work anyway - the "/usr/bin/env python"
idiom will pick up a "python" alias no matter where it lives on $PATH.


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-Dev mailing list