summaryrefslogtreecommitdiff
path: root/pip/req/req_install.py
diff options
context:
space:
mode:
Diffstat (limited to 'pip/req/req_install.py')
-rw-r--r--pip/req/req_install.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pip/req/req_install.py b/pip/req/req_install.py
index 5defe5916..f9a66e0f2 100644
--- a/pip/req/req_install.py
+++ b/pip/req/req_install.py
@@ -683,6 +683,10 @@ class InstallRequirement(object):
'easy-install.pth')
paths_to_remove.add_pth(easy_install_pth, './' + easy_install_egg)
+ elif egg_info_exists and dist.egg_info.endswith('.dist-info'):
+ for path in pip.wheel.uninstallation_paths(dist):
+ paths_to_remove.add(path)
+
elif develop_egg_link:
# develop egg
with open(develop_egg_link, 'r') as fh:
@@ -696,10 +700,6 @@ class InstallRequirement(object):
'easy-install.pth')
paths_to_remove.add_pth(easy_install_pth, dist.location)
- elif egg_info_exists and dist.egg_info.endswith('.dist-info'):
- for path in pip.wheel.uninstallation_paths(dist):
- paths_to_remove.add(path)
-
else:
logger.debug(
'Not sure how to uninstall: %s - Check: %s',