summaryrefslogtreecommitdiff
path: root/src/pip
diff options
context:
space:
mode:
authorPradyun Gedam <pradyunsg@users.noreply.github.com>2020-11-28 13:56:40 +0000
committerPradyun Gedam <pradyunsg@users.noreply.github.com>2020-11-28 13:56:40 +0000
commit1133342f300f5dcc3ac404560e1577a16545f9e5 (patch)
tree56388c5c0f1bfcd577f0537014555b06a54e1e16 /src/pip
parent9f4c5409d08c66e846819049c950fdf3d9804ccb (diff)
downloadpip-1133342f300f5dcc3ac404560e1577a16545f9e5.tar.gz
Always reinstall editables
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
Diffstat (limited to 'src/pip')
-rw-r--r--src/pip/_internal/resolution/resolvelib/resolver.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pip/_internal/resolution/resolvelib/resolver.py b/src/pip/_internal/resolution/resolvelib/resolver.py
index 6b752bd65..30b860f6c 100644
--- a/src/pip/_internal/resolution/resolvelib/resolver.py
+++ b/src/pip/_internal/resolution/resolvelib/resolver.py
@@ -144,8 +144,9 @@ class Resolver(BaseResolver):
elif installed_dist.parsed_version != candidate.version:
# The installation is different in version -- reinstall.
ireq.should_reinstall = True
- elif dist_is_editable(installed_dist) != candidate.is_editable:
- # The installation is different in editable-ness -- reinstall.
+ elif candidate.is_editable or dist_is_editable(installed_dist):
+ # The incoming distribution is editable, or different in
+ # editable-ness to installation -- reinstall.
ireq.should_reinstall = True
elif candidate.source_link.is_file:
# The incoming distribution is under file://