Issue #6065: Do not try to build a version-independent

installer if the package has extension modules.

Also add NEWS entry for #5311.
This commit is contained in:
Martin v. Löwis 2009-05-24 19:10:52 +00:00
parent d03e1b4475
commit 53b578eba1
2 changed files with 5 additions and 0 deletions

View File

@ -141,6 +141,8 @@ class bdist_msi (Command):
bdist_base = self.get_finalized_command('bdist').bdist_base bdist_base = self.get_finalized_command('bdist').bdist_base
self.bdist_dir = os.path.join(bdist_base, 'msi') self.bdist_dir = os.path.join(bdist_base, 'msi')
short_version = get_python_version() 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: if self.target_version:
self.versions = [self.target_version] self.versions = [self.target_version]
if not self.skip_build and self.distribution.has_ext_modules()\ if not self.skip_build and self.distribution.has_ext_modules()\

View File

@ -302,6 +302,9 @@ Core and Builtins
Library 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 - 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. than an int, which makes some operations possible under 64-bit Linux (e.g.
DN_MULTISHOT with F_NOTIFY). DN_MULTISHOT with F_NOTIFY).