]> granicus.if.org Git - python/commitdiff
#1120: put explicit version in the shebang lines of pydoc, idle
authorGeorg Brandl <georg@python.org>
Wed, 12 Sep 2007 19:29:28 +0000 (19:29 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 12 Sep 2007 19:29:28 +0000 (19:29 +0000)
and smtpd.py scripts that are installed by setup.py. That way, they
work when only "make altinstall" is used.

Lib/distutils/command/build_scripts.py

index bda4480ca59e0b69d2aae172a2d2a153b4b6c673..b4810c3eac2ae43964fb7fcf35ffdda02ad7a440 100644 (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()