[Python-checkins] CVS: python/dist/src/Lib/distutils/command build_ext.py,1.76,1.77

Fred L. Drake fdrake@users.sourceforge.net
Thu, 06 Dec 2001 14:59:57 -0800


Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory usw-pr-cvs1:/tmp/cvs-serv30048/Lib/distutils/command

Modified Files:
	build_ext.py 
Log Message:
Visious hackery to solve a build-control problem related to our use of
distutils for the library modules built as shared objects.  A better solution
appears possible, but with the threat that the distutils becomes more
magical ("complex").
This closes SF bug #458343.


Index: build_ext.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/build_ext.py,v
retrieving revision 1.76
retrieving revision 1.77
diff -C2 -d -r1.76 -r1.77
*** build_ext.py	2001/12/06 21:01:19	1.76
--- build_ext.py	2001/12/06 22:59:54	1.77
***************
*** 457,460 ****
--- 457,471 ----
                                          extra_postargs=extra_args)
  
+         # XXX -- this is a Vile HACK!
+         #
+         # The setup.py script for Python on Unix needs to be able to
+         # get this list so it can perform all the clean up needed to
+         # avoid keeping object files around when cleaning out a failed
+         # build of an extension module.  Since Distutils does not
+         # track dependencies, we have to get rid of intermediates to
+         # ensure all the intermediates will be properly re-built.
+         #
+         self._built_objects = objects[:]
+ 
          # Now link the object files together into a "shared object" --
          # of course, first we have to figure out all the other things