*** .\command\bdist_wininst.py.orig Wed Mar 17 14:00:15 2010 --- .\command\bdist_wininst.py Wed Mar 17 14:29:55 2010 *************** *** 79,90 **** def finalize_options (self): if self.bdist_dir is None: ! if self.skip_build and self.plat_name: ! # If build is skipped and plat_name is overridden, bdist will ! # not see the correct 'plat_name' - so set that up manually. bdist = self.distribution.get_command_obj('bdist') bdist.plat_name = self.plat_name ! # next the command will be initialized using that name bdist_base = self.get_finalized_command('bdist').bdist_base self.bdist_dir = os.path.join(bdist_base, 'wininst') if not self.target_version: --- 79,91 ---- def finalize_options (self): if self.bdist_dir is None: ! if self.plat_name: ! #bdist doesn't propagate plat_name so we do it here ! build = self.distribution.get_command_obj('build') ! build.plat_name = self.plat_name bdist = self.distribution.get_command_obj('bdist') bdist.plat_name = self.plat_name ! # next the command(s) will be initialized using that name bdist_base = self.get_finalized_command('bdist').bdist_base self.bdist_dir = os.path.join(bdist_base, 'wininst') if not self.target_version: