Skip to content

Commit 1133342

Browse files
committed
Always reinstall editables
Signed-off-by: Pradyun Gedam <[email protected]>
1 parent 9f4c540 commit 1133342

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pip/_internal/resolution/resolvelib/resolver.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ def resolve(self, root_reqs, check_supported_wheels):
144144
elif installed_dist.parsed_version != candidate.version:
145145
# The installation is different in version -- reinstall.
146146
ireq.should_reinstall = True
147-
elif dist_is_editable(installed_dist) != candidate.is_editable:
148-
# The installation is different in editable-ness -- reinstall.
147+
elif candidate.is_editable or dist_is_editable(installed_dist):
148+
# The incoming distribution is editable, or different in
149+
# editable-ness to installation -- reinstall.
149150
ireq.should_reinstall = True
150151
elif candidate.source_link.is_file:
151152
# The incoming distribution is under file://

0 commit comments

Comments
 (0)