mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class build_scripts (Command):
|
||||||
match = first_line_re.match(first_line)
|
match = first_line_re.match(first_line)
|
||||||
if match:
|
if match:
|
||||||
adjust = 1
|
adjust = 1
|
||||||
post_interp = match.group(1)
|
post_interp = match.group(1) or ''
|
||||||
|
|
||||||
if adjust:
|
if adjust:
|
||||||
self.announce("copying and adjusting %s -> %s" %
|
self.announce("copying and adjusting %s -> %s" %
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue