Skip to content

Eagerly import self_outdated_check when modifying pip #12684

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

Merged
merged 1 commit into from
May 9, 2024

Conversation

ichard26
Copy link
Member

@ichard26 ichard26 commented May 8, 2024

The self_outdated_check module should be loaded before pip is replaced as otherwise the module is liable to blow up if there are any incompatibities between the self_outdated_check from new pip and the old pip already loaded.

Alternative to #12676.
Fixes #12675.

The self_outdated_check module should be loaded *before* pip is replaced
as otherwise the module is liable to blow up if there are any
incompatibities between the self_outdated_check from new pip and the old
pip already loaded.
@pradyunsg
Copy link
Member

Actually, @ichard26 could you add a test for this failure mode as well?

@ichard26
Copy link
Member Author

ichard26 commented May 8, 2024

I likely won't get to it until this weekend, but sure I can add a test.

@notatallshaw
Copy link
Member

FYI confirmed PR locally:

python -m pip install "pip @ git+https://github.com/ichard26/pip.git@fix-pip-downgrade"
python -m pip install pip==24.0

@pradyunsg pradyunsg merged commit 912da19 into pypa:main May 9, 2024
29 checks passed
@pradyunsg
Copy link
Member

I likely won't get to it until this weekend, but sure I can add a test.

No hurries on this; we can add this in follow up!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2024
@ichard26 ichard26 deleted the fix-pip-downgrade branch July 10, 2024 23:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pip 24.1b1 downgrade to pip 24.0 throws an exception
3 participants