[Python-checkins] CVS: python/dist/src setup.py,1.68,1.69

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


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

Modified Files:
	setup.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: setup.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/setup.py,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** setup.py	2001/12/06 22:24:47	1.68
--- setup.py	2001/12/06 22:59:54	1.69
***************
*** 173,176 ****
--- 173,183 ----
              os.remove(ext_filename)
  
+             # XXX -- This relies on a Vile HACK in
+             # distutils.command.build_ext.build_extension().  The
+             # _built_objects attribute is stored there strictly for
+             # use here.
+             for filename in self._built_objects:
+                 os.remove(filename)
+ 
      def get_platform (self):
          # Get value of sys.platform