Skip to content

Commit

Permalink
Fix metadata test ordering to work with inheritance hierarchy.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed Nov 19, 2018
1 parent ab7d258 commit 9f2ba07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pex/finders.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,12 @@ def get_script_from_distribution(name, dist):
return get_script_from_whl(name, dist)
else:
return None, None
# EggMetadata: Zipped egg
elif isinstance(dist._provider, pkg_resources.EggMetadata):
return get_script_from_egg(name, dist)
# WheelMetadata: Zipped whl (in theory should not experience this at runtime.)
elif isinstance(dist._provider, WheelMetadata):
return get_script_from_whl(name, dist)
# EggMetadata: Zipped egg
elif isinstance(dist._provider, pkg_resources.EggMetadata):
return get_script_from_egg(name, dist)
return None, None


Expand Down

0 comments on commit 9f2ba07

Please sign in to comment.