[Distutils] Patch to build RPM with Python 2.0

Jeremy J Kloth jeremy.kloth@fourthought.com
Tue Jan 16 08:48:01 2001


While attempting to build an RPM using distutils on Python 2.0,
rpm complained about duplicate files.

The following patch fixed that problem:

--- /usr/local/src/Python2.0/Lib/distutils/command/install.py   Wed Dec 20
04:02:59 2000
+++ /usr/local/lib/python2.0/distutils/command/install.py  Tue Jan 16
06:31:31 2001
@@ -529,7 +529,8 @@
         outputs = []
         for cmd_name in self.get_sub_commands():
             cmd = self.get_finalized_command(cmd_name)
-            outputs.extend(cmd.get_outputs())
+            for out in cmd.get_outputs():
+                out not in outputs and outputs.append(out)

         return outputs
--
Jeremy Kloth                        Consultant
jeremy.kloth@fourthought.com        (303)583-9900 x 105
Fourthought, Inc.                   http://www.fourthought.com
Software-engineering, knowledge-management, XML, CORBA, Linux, Python