summaryrefslogtreecommitdiff
path: root/pkg_resources.py
diff options
context:
space:
mode:
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 6396f08b..78c96094 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -2230,7 +2230,8 @@ class Distribution(object):
for p, item in enumerate(npath):
if item==nloc:
break
- elif item==bdir:
+ elif item==bdir and self.precedence==EGG_DIST:
+ # if it's an .egg, give it precedence over its directory
path.insert(p, loc)
npath.insert(p, nloc)
break
@@ -2252,7 +2253,6 @@ class Distribution(object):
-
def check_version_conflict(self):
if self.key=='setuptools':
return # ignore the inevitable setuptools self-conflicts :(