summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-09-30 12:58:22 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-09-30 12:58:22 (GMT)
commitafa3153b27c160ddd533d5716644bf38fb41fff1 (patch)
tree08135681e4ff064b90a19e7ccd77276a8c3203dc /Lib/distutils
parent6b8e0ed562e867ebffed0209266e21d9f0a4bb77 (diff)
downloadcpython-afa3153b27c160ddd533d5716644bf38fb41fff1.zip
cpython-afa3153b27c160ddd533d5716644bf38fb41fff1.tar.gz
cpython-afa3153b27c160ddd533d5716644bf38fb41fff1.tar.bz2
Remove pointless "vile hack" that can cause the build step to fail when some extension modules can't be imported.
See issue #5309 for the build failures, issue #458343 for the original motivation.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/build_ext.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 08449e1..2ffab18 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -545,15 +545,8 @@ class build_ext(Command):
extra_postargs=extra_args,
depends=ext.depends)
- # 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.
- #
+ # XXX outdated variable, kept here in case third-part code
+ # needs it.
self._built_objects = objects[:]
# Now link the object files together into a "shared object" --