#1120: put explicit version in the shebang lines of pydoc, idle

and smtpd.py scripts that are installed by setup.py. That way, they
work when only "make altinstall" is used.
This commit is contained in:
Georg Brandl 2007-09-12 19:29:28 +00:00
parent 8fd3ecf928
commit aef205d1a8
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@ class build_scripts (Command):
outf.write("#!%s%s\n" %
(os.path.join(
sysconfig.get_config_var("BINDIR"),
"python" + sysconfig.get_config_var("EXE")),
"python" + sysconfig.get_config_var("VERSION")
+ sysconfig.get_config_var("EXE")),
post_interp))
outf.writelines(f.readlines())
outf.close()