Set self.satisfied_by back to None;

Add a comment that says something like "when installing editables,
nothing pre-existing should ever satisfy".

Addresses @qwcode's comment at
https://github.com/pypa/pip/pull/1552#discussion_r9781803
This commit is contained in:
Marc Abramowitz 2014-02-22 19:48:00 -08:00
parent 387058675e
commit 5b62075341
1 changed files with 3 additions and 0 deletions

View File

@ -879,6 +879,9 @@ exec(compile(
if self.editable and self.satisfied_by:
self.conflicts_with = self.satisfied_by
# when installing editables, nothing pre-existing should ever
# satisfy
self.satisfied_by = None
return True
except pkg_resources.DistributionNotFound:
return False