[Python-checkins] r63755 - python/trunk/Lib/distutils/command/bdist_wininst.py

mark.hammond python-checkins at python.org
Wed May 28 03:54:55 CEST 2008


Author: mark.hammond
Date: Wed May 28 03:54:55 2008
New Revision: 63755

Log:
bdist_wininst now works correctly when both --skip-build and --plat-name are specified.


Modified:
   python/trunk/Lib/distutils/command/bdist_wininst.py

Modified: python/trunk/Lib/distutils/command/bdist_wininst.py
==============================================================================
--- python/trunk/Lib/distutils/command/bdist_wininst.py	(original)
+++ python/trunk/Lib/distutils/command/bdist_wininst.py	Wed May 28 03:54:55 2008
@@ -79,6 +79,12 @@
 
     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:


More information about the Python-checkins mailing list