summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/build_scripts.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-09-12 19:29:28 (GMT)
committerGeorg Brandl <georg@python.org>2007-09-12 19:29:28 (GMT)
commitaef205d1a872e6cf4b4a4afa7309b1be4f260823 (patch)
tree14ca66de14512bc129e60b57cfea8dd5958b6ddc /Lib/distutils/command/build_scripts.py
parent8fd3ecf9289942d5544c3943be9bc4e9386908b7 (diff)
downloadcpython-aef205d1a872e6cf4b4a4afa7309b1be4f260823.zip
cpython-aef205d1a872e6cf4b4a4afa7309b1be4f260823.tar.gz
cpython-aef205d1a872e6cf4b4a4afa7309b1be4f260823.tar.bz2
#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.
Diffstat (limited to 'Lib/distutils/command/build_scripts.py')
-rw-r--r--Lib/distutils/command/build_scripts.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py
index bda4480..b4810c3 100644
--- a/Lib/distutils/command/build_scripts.py
+++ b/Lib/distutils/command/build_scripts.py
@@ -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()