mirror of https://github.com/python/cpython
Joe VanAndel wrote:
> > When using 'distutils' (shipped with Python 2.1) I've found that my > Python scripts installed with a first line of: > > #!/usr/bin/python2.1None > > This is caused by distutils trying to patch the first line of the python > script to use the current interpreter.
This commit is contained in:
parent
77d8a4fc91
commit
90294d01be
|
@ -80,7 +80,7 @@ class build_scripts (Command):
|
|||
match = first_line_re.match(first_line)
|
||||
if match:
|
||||
adjust = 1
|
||||
post_interp = match.group(1)
|
||||
post_interp = match.group(1) or ''
|
||||
|
||||
if adjust:
|
||||
self.announce("copying and adjusting %s -> %s" %
|
||||
|
|
Loading…
Reference in New Issue