mirror of https://github.com/python/cpython
#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:
parent
8fd3ecf928
commit
aef205d1a8
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue