We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
==
Environment
Description
The assertion at
pip/src/pip/_internal/req/req_uninstall.py
Line 362 in 729990c
should use os.path.samefile to compare paths. Hot-patching this in lib of a virtualenv solved my problem.
os.path.samefile
lib
If you agree, I can prepare a PR.
Expected behavior
Uninstall should succeed in the face of symlinked project paths.
How to Reproduce
Not sure exactly, but have symlinks in the path to your virtualenv / project, so there are two alternative root paths.
The text was updated successfully, but these errors were encountered:
Hi, I created a PR:
The samefile solution seems to fail on Windows, but I found another solution here (general03/flask-autoindex#14) to use os.stat instead.
samefile
os.stat
Sorry, something went wrong.
Solves issue pypa#5439
57a0231
Handle symlinks in req_uninstall.py
Fixed in #10697.
Successfully merging a pull request may close this issue.
Environment
Description
The assertion at
pip/src/pip/_internal/req/req_uninstall.py
Line 362 in 729990c
should use
os.path.samefile
to compare paths. Hot-patching this inlib
of a virtualenv solved my problem.If you agree, I can prepare a PR.
Expected behavior
Uninstall should succeed in the face of symlinked project paths.
How to Reproduce
Not sure exactly, but have symlinks in the path to your virtualenv / project, so there are two alternative root paths.
The text was updated successfully, but these errors were encountered: