Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleknap committed Jan 30, 2024
1 parent 9dec2ae commit bcf9b13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/dependencies/test_closure.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def _get_distribution(self, name: str) -> importlib.metadata.Distribution:
# Packages names may have a "-". These get converted to "_" for
# their respective directory names in the site packages directory.
snake_case_name = name.replace("-", "_")
print(_SITE_PACKAGES)
for filename in os.listdir(_SITE_PACKAGES):
print(filename)
if fnmatch.fnmatch(filename, f"{snake_case_name}-*.dist-info"):
return importlib.metadata.Distribution.at(
os.path.join(_SITE_PACKAGES, filename)
Expand Down

0 comments on commit bcf9b13

Please sign in to comment.