Fixed #4524: distutils build_script command failed with --with-suffix=3

This commit is contained in:
Tarek Ziadé 2009-02-13 23:00:43 +00:00
parent 275958aacf
commit 2432b0b367
3 changed files with 33 additions and 2 deletions

View file

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