[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Tools/scripts pydoc,NONE,1.1

Thomas Heller thomas.heller@ion-tof.com
Fri, 2 Mar 2001 17:38:04 +0100


Gred Ward, who suddenly reappears:
> On 02 March 2001, Guido van Rossum said:
> > This could become a standard distutils feature!
> 
> It is -- if a script is listed in 'scripts' in setup.py, and it's a Python
> script, its #! line is automatically munged to point to the python that's
> running the setup script.
> 
What about this code in build_scripts.py?

  # check if Python is called on the first line with this expression.
  # This expression will leave lines using /usr/bin/env alone; presumably
  # the script author knew what they were doing...)
  first_line_re = re.compile(r'^#!(?!\s*/usr/bin/env\b).*python(\s+.*)?')

Doesn't this mean that
#!/usr/bin/env python
lines are NOT fixed?

Thomas