#53 setup.py should mangle #! lines

closed-fixed
Jeremy Hylton
None
5
2003-01-20
2003-01-18
Guido van Rossum
No

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).

Discussion

    • assigned_to: nobody --> jhylton
     
  • Greg Ward
    Greg Ward
    2003-01-20

    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.

     
    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=6380

    Fixed by making all #! lines read "#!python".