Kaydet (Commit) 03ffbcd3 authored tarafından Neal Norwitz's avatar Neal Norwitz

Fix SF # 532618 517704, install problems when building modules fail.

Fix whitespace on a line also.
üst 8c077227
...@@ -188,8 +188,13 @@ class PyBuildExt(build_ext): ...@@ -188,8 +188,13 @@ class PyBuildExt(build_ext):
# distutils.command.build_ext.build_extension(). The # distutils.command.build_ext.build_extension(). The
# _built_objects attribute is stored there strictly for # _built_objects attribute is stored there strictly for
# use here. # use here.
# If there is a failure, _built_objects may not be there,
# so catch the AttributeError and move on.
try:
for filename in self._built_objects: for filename in self._built_objects:
os.remove(filename) os.remove(filename)
except AttributeError:
self.announce('unable to remove files (ignored)')
else: else:
self.announce('*** WARNING: importing extension "%s" ' self.announce('*** WARNING: importing extension "%s" '
'failed: %s' % (ext.name, why)) 'failed: %s' % (ext.name, why))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment