From 123e61d4a59ac1ce91c54733f4962a272b52a688 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Wed, 18 Apr 2018 09:39:27 +0530 Subject: [PATCH 1/2] Reorder conditionals to deal with installed VCS requirements --- src/pip/_internal/wheel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pip/_internal/wheel.py b/src/pip/_internal/wheel.py index 170e2bdc517..c71f17d2c8b 100644 --- a/src/pip/_internal/wheel.py +++ b/src/pip/_internal/wheel.py @@ -717,11 +717,11 @@ def build(self, requirements, session, autobuilding=False): ) elif autobuilding and req.editable: pass + elif autobuilding and not req.source_dir: + pass elif autobuilding and req.link and not req.link.is_artifact: # VCS checkout. Build wheel just for this run. buildset.append((req, True)) - elif autobuilding and not req.source_dir: - pass else: ephem_cache = False if autobuilding: From b610eabcc9d04d829cd78ca4e1d40801ee837151 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Wed, 18 Apr 2018 09:46:42 +0530 Subject: [PATCH 2/2] :newspaper: --- news/5251.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/5251.bugfix diff --git a/news/5251.bugfix b/news/5251.bugfix new file mode 100644 index 00000000000..7bc1b10c71b --- /dev/null +++ b/news/5251.bugfix @@ -0,0 +1 @@ +A crash when reinstalling from VCS requirements has been fixed.