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 new resolver upgrades when not needed to #8974

Merged

Conversation

NoahGorny
Copy link
Contributor

Closes #8963
Seems like the new resolver did not get the already installed requirements correctly...
I changed it to the way it works in _search_distribution in misc.py:489

I did not add tests, as I am not sure what is the correct way to test this

@uranusjr
Copy link
Member

uranusjr commented Oct 9, 2020

The local logic looks good to me. Would you be able to check what would pip do when a system package does need to upgrade?

@NoahGorny NoahGorny force-pushed the fix-new-resolver-upgrades-when-not-needed-to branch from 2ec4e37 to 7e02958 Compare October 9, 2020 23:23
@NoahGorny
Copy link
Contributor Author

The local logic looks good to me. Would you be able to check what would pip do when a system package does need to upgrade?

It works as expected, installing the new version and not removing the old version
Not uninstalling six at /path/to/dist-packages, outside environment /path/to/venv

@uranusjr uranusjr added this to the 20.3 milestone Oct 10, 2020
@uranusjr
Copy link
Member

I took the liberty to add this to the 20.3 milestone.

@pradyunsg pradyunsg merged commit 063f2ae into pypa:master Oct 10, 2020
@NoahGorny NoahGorny deleted the fix-new-resolver-upgrades-when-not-needed-to branch October 10, 2020 15:15
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pip upgrades virtualenv packages from system-site-packages when it does not need to / should not
3 participants