From: Thomas Heller Date: Fri, 20 Feb 2004 19:38:50 +0000 (+0000) Subject: Use the right wininstXX.exe, depending on X-Git-Tag: v2.4a1~782 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0bc9c919e80f0a1b2815ca98d273251fb344067a;p=thirdparty%2FPython%2Fcpython.git Use the right wininstXX.exe, depending on msvccompiler.get_build_version(). Distributions without a pre-install-script didn't work any longer, we must at least provide the terminating NUL character. --- diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py index 76b1762edefb..324ce31a912e 100644 --- a/Lib/distutils/command/bdist_wininst.py +++ b/Lib/distutils/command/bdist_wininst.py @@ -249,6 +249,9 @@ class bdist_wininst (Command): if self.pre_install_script: script_data = open(self.pre_install_script, "r").read() cfgdata = cfgdata + script_data + "\n\0" + else: + # empty pre-install script + cfgdata = cfgdata + "\0" file.write(cfgdata) header = struct.pack("