]> granicus.if.org Git - python/commitdiff
Issue #6065: Do not try to build a version-independent
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 24 May 2009 19:10:52 +0000 (19:10 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 24 May 2009 19:10:52 +0000 (19:10 +0000)
installer if the package has extension modules.

Also add NEWS entry for #5311.

Lib/distutils/command/bdist_msi.py
Misc/NEWS

index 4272b818bde78ea7e308306076e2231f48efe189..b42e41b373ce3585603dcd3fb21ff12a03eb985b 100644 (file)
@@ -141,6 +141,8 @@ class bdist_msi (Command):
             bdist_base = self.get_finalized_command('bdist').bdist_base
             self.bdist_dir = os.path.join(bdist_base, 'msi')
         short_version = get_python_version()
+        if (not self.target_version) and self.distribution.has_ext_modules():
+            self.target_version = short_version
         if self.target_version:
             self.versions = [self.target_version]
             if not self.skip_build and self.distribution.has_ext_modules()\
index 2a4d8378618f71068282024e6d3b97f4b8bc2cec..a21651b161d8d97acc0127572032b6e73ceb2581 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -302,6 +302,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #5311: bdist_msi can now build packages that do not depend on a
+  specific Python version.
+
 - Issue #1309352: fcntl now converts its third arguments to a C `long` rather
   than an int, which makes some operations possible under 64-bit Linux (e.g.
   DN_MULTISHOT with F_NOTIFY).