On Thu, Oct 27, 2011 at 10:54 PM, Paul Ivanov <[email protected]> wrote:
> On Thu, Oct 27, 2011 at 7:43 PM, Chris Jerdonek
> <[email protected]> wrote:
>>
>> Based on some debugging lines I tried inserting, when I execute the
>> script called simply "easy_install", the script seems to execute just
>> the first line (namely "#!/usr/bin/python"), and then seems to
>> immediately jump to executing easy_install-2.6.
>>
> you can verify that no jumping occurs by printing a unique string in each of
> `which easy_install` `which easy_install-2.6` `which easy_install-2.5`
That's what I did to observe the behavior:
If I insert "echo AAA" at the beginning of /usr/bin/easy_install,
running easy_install displays "AAA" as the first line of output.
However, when I remove "echo AAA" from the beginning of easy_install
and insert an exit statement right after the first line--
#!/usr/bin/python
exit('BBB')
as well as an exit statement right after the first line of
easy_install-2.5 (I meant to say 2.5 before)--
#!/System/Library/.../Python
print 'CCC'
running easy_install displays "CCC" rather than "BBB". So the
interpreter seems to have jumped from the first line of easy_install
to the beginning of easy_install-2.5 -- without executing the second
line of easy_install.
--Chris
_______________________________________________
Distutils-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig