--- Lib/distutils/command/bdist_msi.py.orig Thu May 08 09:16:38 2008 +++ Lib/distutils/command/bdist_msi.py Thu Apr 23 09:24:18 2009 @@ -188,10 +188,11 @@ if not target_version: assert self.skip_build, "Should have already checked this" target_version = sys.version[0:3] - plat_specifier = ".%s-%s" % (self.plat_name, target_version) - build = self.get_finalized_command('build') - build.build_lib = os.path.join(build.build_base, - 'lib' + plat_specifier) + if target_version != sys.version[0:3]: + plat_specifier = ".%s-%s" % (self.plat_name, target_version) + build = self.get_finalized_command('build') + build.build_lib = os.path.join(build.build_base, + 'lib' + plat_specifier) log.info("installing to %s", self.bdist_dir) install.ensure_finalized() --- Lib/distutils/command/bdist_wininst.py.orig Tue Apr 14 21:45:12 2009 +++ Lib/distutils/command/bdist_wininst.py Thu Apr 23 09:36:01 2009 @@ -146,10 +146,11 @@ if not target_version: assert self.skip_build, "Should have already checked this" target_version = sys.version[0:3] - plat_specifier = ".%s-%s" % (self.plat_name, target_version) - build = self.get_finalized_command('build') - build.build_lib = os.path.join(build.build_base, - 'lib' + plat_specifier) + if target_version != sys.version[0:3]: + plat_specifier = ".%s-%s" % (self.plat_name, target_version) + build = self.get_finalized_command('build') + build.build_lib = os.path.join(build.build_base, + 'lib' + plat_specifier) # Use a custom scheme for the zip-file, because we have to decide # at installation time which scheme to use.