]> granicus.if.org Git - python/commitdiff
[ 1761786 ] distutils.util.get_platform() return value on 64bit Windows
authorMark Hammond <mhammond@skippinet.com.au>
Tue, 21 Aug 2007 01:05:16 +0000 (01:05 +0000)
committerMark Hammond <mhammond@skippinet.com.au>
Tue, 21 Aug 2007 01:05:16 +0000 (01:05 +0000)
As discussed on distutils-sig: Allows the generated installer name on
64bit Windows platforms to be different than the name generated for
32bit Windows platforms.

Lib/distutils/command/bdist_msi.py

index 75db8773f1e36f990d7fdc6098812c4eb9207810..a1c0df4bc54a31f42df76a6738393e80bc335caa 100644 (file)
@@ -633,7 +633,8 @@ class bdist_msi (Command):
 
     def get_installer_filename(self, fullname):
         # Factored out to allow overriding in subclasses
+        plat = get_platform()
         installer_name = os.path.join(self.dist_dir,
-                                      "%s.win32-py%s.msi" %
-                                       (fullname, self.target_version))
+                                      "%s.%s-py%s.msi" %
+                                       (fullname, plat, self.target_version))
         return installer_name