Debug logging in case of unexpected wheel name in cache

This commit is contained in:
Stéphane Bidoul (ACSONE) 2019-11-13 15:13:04 +01:00
parent a4d12f807f
commit 47ae034da8
No known key found for this signature in database
GPG Key ID: BCAB2555446B5B92
1 changed files with 6 additions and 0 deletions

View File

@ -181,6 +181,12 @@ class SimpleWheelCache(Cache):
except InvalidWheelFilename:
continue
if canonicalize_name(wheel.name) != canonical_package_name:
logger.debug(
"Ignoring cached wheel {} for {} as it "
"does not match the expected distribution name {}.".format(
wheel_name, link, package_name
)
)
continue
if not wheel.supported(supported_tags):
# Built for a different python/arch/etc