1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Add missing error report

Use the same error message as in WheelBuilder.build(),
include the exception in the message.
This commit is contained in:
Stéphane Bidoul (ACSONE) 2019-12-14 13:25:28 +01:00
parent 9573c2b6c6
commit f60d15ca87
No known key found for this signature in database
GPG key ID: BCAB2555446B5B92

View file

@ -375,7 +375,11 @@ class WheelBuilder(object):
wheel_hash.hexdigest())
logger.info('Stored in directory: %s', output_dir)
return dest_path
except Exception:
except Exception as e:
logger.warning(
"Building wheel for %s failed: %s",
req.name, e,
)
pass
# Ignore return, we can't do anything else useful.
self._clean_one(req)