[Python-checkins] r72891 - in python/trunk: Lib/distutils/command/bdist_msi.py Misc/NEWS

martin.v.loewis python-checkins at python.org
Sun May 24 21:10:52 CEST 2009


Author: martin.v.loewis
Date: Sun May 24 21:10:52 2009
New Revision: 72891

Log:
Issue #6065: Do not try to build a version-independent
installer if the package has extension modules.

Also add NEWS entry for #5311.


Modified:
   python/trunk/Lib/distutils/command/bdist_msi.py
   python/trunk/Misc/NEWS

Modified: python/trunk/Lib/distutils/command/bdist_msi.py
==============================================================================
--- python/trunk/Lib/distutils/command/bdist_msi.py	(original)
+++ python/trunk/Lib/distutils/command/bdist_msi.py	Sun May 24 21:10:52 2009
@@ -141,6 +141,8 @@
             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()\

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Sun May 24 21:10:52 2009
@@ -302,6 +302,9 @@
 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).


More information about the Python-checkins mailing list