]> granicus.if.org Git - python/commit
Undo revision 1.7: always mangle a #! line containing "python" to point
authorGreg Ward <gward@python.net>
Wed, 25 Jul 2001 20:20:11 +0000 (20:20 +0000)
committerGreg Ward <gward@python.net>
Wed, 25 Jul 2001 20:20:11 +0000 (20:20 +0000)
commit7cf7e7e52983b23951ede34f44a903a38dcbdcb4
tree5d8e52377f6a8b2d8d78a67fe7b2b03355a98be4
parente628a2fa85ed2f94c6049f3ccb8d671052389548
Undo revision 1.7: always mangle a #! line containing "python" to point
to the current Python interpreter (ie. the one used for
building/installation), even (especially!) if "/usr/bin/env" appears in
the #! line.

Rationale: installing scripts with "#!/usr/bin/env python" is asking for
trouble, because
  1) it might pick the wrong interpreter (not the one used to
     build/install the script)
  2) it doesn't work on all platforms (try it on IRIX 5, or on Linux
     with command-line options for python)
  3) "env" might not be in /usr/bin
Lib/distutils/command/build_scripts.py