mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
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.
This commit is contained in:
parent
e3d7622fb3
commit
9028d0a525
2 changed files with 18 additions and 0 deletions
|
@ -456,6 +456,17 @@ class build_ext (Command):
|
|||
debug=self.debug,
|
||||
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
|
||||
# that go into the mix.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue