Commit 30bfa264 authored by Marc-André Lemburg's avatar Marc-André Lemburg

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.
parent 54b68c95
......@@ -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" %
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment