Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
May 20, 2020

Conversation

frenzymadness
Copy link
Contributor

@frenzymadness frenzymadness commented May 19, 2020

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.

Copy link
Contributor

@gaborbernat gaborbernat left a comment

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.

src/virtualenv/seed/embed/pip_invoke.py Show resolved Hide resolved
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
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 <[email protected]>
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--seeder pip does not work with --extra-search-dir
2 participants