Skip to content

Commit

Permalink
Fix pip seeder with --extra-search-dir specified
Browse files Browse the repository at this point in the history
pip needs to have `--find-links` CLI argument for each directory
not just once for a list of directories.

Fixes: pypa#1834
  • Loading branch information
frenzymadness committed May 19, 2020
1 parent 8f97913 commit fd41014
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/virtualenv/seed/embed/pip_invoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ def get_pip_install_cmd(self, exe, version):
folders.add(stack.enter_context(context).parent)
for folder in folders:
cmd.extend(["--find-links", str(folder)])
cmd.extend(self.extra_search_dir)
for folder in self.extra_search_dir:
cmd.extend(["--find-links", str(folder)])
yield cmd

0 comments on commit fd41014

Please sign in to comment.