Mercurial > cpython-lru_cache-weakref
diff setup.py @ 21277:f702ff390e4d legacy-trunk
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.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Thu, 06 Dec 2001 22:59:54 +0000 |
| parents | cfbe38a03e8c |
| children | 3a2cf5e45656 |
line wrap: on
line diff
--- a/setup.py Thu Dec 06 22:58:56 2001 +0000 +++ b/setup.py Thu Dec 06 22:59:54 2001 +0000 @@ -172,6 +172,13 @@ self.get_ext_filename(fullname)) 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 platform = sys.platform
