[Python-checkins] r65951 - sandbox/branches/setuptools-0.6/setuptools/command/bdist_wininst.py

phillip.eby python-checkins at python.org
Thu Aug 21 20:55:08 CEST 2008


Author: phillip.eby
Date: Thu Aug 21 20:55:07 2008
New Revision: 65951

Log:
Fix for http://bugs.python.org/setuptools/issue11 (backport from trunk)


Modified:
   sandbox/branches/setuptools-0.6/setuptools/command/bdist_wininst.py

Modified: sandbox/branches/setuptools-0.6/setuptools/command/bdist_wininst.py
==============================================================================
--- sandbox/branches/setuptools-0.6/setuptools/command/bdist_wininst.py	(original)
+++ sandbox/branches/setuptools-0.6/setuptools/command/bdist_wininst.py	Thu Aug 21 20:55:07 2008
@@ -21,8 +21,9 @@
             installer_name = os.path.join(self.dist_dir,
                                           "%s.win32.exe" % fullname)
             pyversion = 'any'
-
-        dist_files.append(('bdist_wininst', pyversion, installer_name))
+        good = ('bdist_wininst', pyversion, installer_name)
+        if good not in dist_files:
+            dist_files.append(good)
 
     def reinitialize_command (self, command, reinit_subcommands=0):
         cmd = self.distribution.reinitialize_command(


More information about the Python-checkins mailing list