From 9f2ba07cbcda05a223956d606cbb3c33c0f5881d Mon Sep 17 00:00:00 2001 From: John Sirois Date: Mon, 19 Nov 2018 16:15:41 -0500 Subject: [PATCH] Fix metadata test ordering to work with inheritance hierarchy. --- pex/finders.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pex/finders.py b/pex/finders.py index 5309a9219..1698a61f3 100644 --- a/pex/finders.py +++ b/pex/finders.py @@ -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