From 40436edb86b034979b716695ec68fe55bb656d79 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 22 Nov 2015 19:18:37 -0500 Subject: Only detect a path as an unpacked egg if it also has an EGG-INFO directory. Fixes #462. --- CHANGES.txt | 7 +++++++ pkg_resources/__init__.py | 1 + 2 files changed, 8 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index bd05b8bd..60d43fb2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,6 +2,13 @@ CHANGES ======= +---- +18.6 +---- + +* Issue #462: Provide a more refined detection of unpacked egg + directories, avoiding detecting zc.recipe.egg wheel as an egg. + ---- 18.5 ---- diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index 0c024f1b..8841ee63 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -2288,6 +2288,7 @@ def _is_unpacked_egg(path): """ return ( path.lower().endswith('.egg') + and os.path.isdir(os.path.join(path, 'EGG-INFO')) ) def _set_parent_ns(packageName): -- cgit v1.2.3