[ZODB-Dev] [ zodb-Bugs-670302 ] setup.py should mangle #! lines

SourceForge.net noreply@sourceforge.net
Mon, 20 Jan 2003 08:08:47 -0800


Bugs item #670302, was opened at 2003-01-18 11:09
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=115628&aid=670302&group_id=15628

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Jeremy Hylton (jhylton)
Summary: setup.py should mangle #! lines

Initial Comment:
When setup.py installs scripts (like runzeo.py) it
leaves the original "#! /usr/bin/env python" line in.
It should replace those with a #! line that references
sys.executable (which may not be the default python).


----------------------------------------------------------------------

Comment By: Greg Ward (gward)
Date: 2003-01-20 11:08

Message:
Logged In: YES 
user_id=14422

The distutils 'build_scripts' command is supposed to take care of mangling #! lines.  It's a bit sensitive to the exact format of the #! line, though, and exactly how it works seems to change with every Python version.

I *think* the right thing to do is distribute scripts with the first line "#!/usr/bin/python" (or just "#!python"), and let 'build_scripts' do the munging.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=115628&aid=670302&group_id=15628