-
Notifications
You must be signed in to change notification settings - Fork 3k
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
pip install --find-links not expanding "~" #6804
Comments
I think you mean commit cab7316? It looks like the error is that this line should have been |
Yes, you're right, I did mean cab7316. I tested the fix you propose, that indeed fixes it. I'll send a PR for it! |
Thanks. In your PR you should add another unit test of that function testing that e.g. normalize_path is called on such values. |
I posted PR #6827 to fix this, with tests, and added it to the 19.2 milestone. |
Released pip 19.2.2 containing a fix for this issue. :) |
Environment
At the moment I have pip 19.0.3 installed in my user-site directory. I noticed a change in behavior when using a newer pip (19.2.1) while experimenting with PYTHONUSERBASE as an alternative to virtualenvs.
Description
The
--find-links
option used to expand tildes (~) into the user's$HOME
, but it no longer does so.Expected behavior
The
--find-links
option should expand tildes like it used to.How to Reproduce
I was able to bisect it to commit 7d08bb3 as the first commit that no longer expands tildes: (All done from the root of the pip repo)
PYTHONPATH=src python -m pip download --destination-dir='~/temp' pytz
git bisect start HEAD 19.0.3
PYTHONPATH=src PYTHONUSERBASE=/tmp/x git bisect run sh -c "rm -rf /tmp/x; python -m pip --isolated --no-cache-dir --disable-pip-version-check install --no-index --find-links='~/temp' --user pytz"
(Clean everything up:
rm -rf /tmp/x ~/temp
)Output
Bisect log
The text was updated successfully, but these errors were encountered: