Skip to content

Fix pip seeder with --extra-search-dir specified#1835

Merged
gaborbernat merged 4 commits into
pypa:masterfrom
frenzymadness:fix_seeder_pip
May 20, 2020
Merged

Fix pip seeder with --extra-search-dir specified#1835
gaborbernat merged 4 commits into
pypa:masterfrom
frenzymadness:fix_seeder_pip

Conversation

@frenzymadness

@frenzymadness frenzymadness commented May 19, 2020

Copy link
Copy Markdown
Contributor

pip needs to have --find-links CLI argument for each directory
not just once for a list of directories.

Fixes: #1834

  • ran the linter to address style issues (tox -e fix_lint)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation

If you agree with the fix, I'll try to prepare a test for it and a changelog entry.

@gaborbernat gaborbernat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A more accurate fix, otherwise yeah looks good.

Comment thread src/virtualenv/seed/embed/pip_invoke.py
pip needs to have `--find-links` CLI argument for each directory
not just once for a list of directories.

Fixes: pypa#1834
This tests that the command generated in get_pip_install_cmd() is
correct and has --find-links for each folder.
@frenzymadness

Copy link
Copy Markdown
Contributor Author

Fix updated, test also updated, changelog added. The change to test is basically no-op but it verifies that the command generated in get_pip_install_cmd() is correct — updated test fails without the fix and passes with it.

Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
@gaborbernat gaborbernat merged commit cab770c into pypa:master May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants