Skip to content

Conversation

@freakboy3742
Copy link
Contributor

For the last week or so, all macOS CI builds have been failing because of an issue with a recent Homebrew update.

The packaged version of pip 25.0.1 installed by homebrew doesn't include a RECORD file in the distribution metadata. As a result, any attempt to upgrade pip fails, because pip can't uninstall itself.

As a workaround to get CI unstuck, this writes a dummy RECORD file so that pip can be upgraded. This does leave a stray pip-25.0.1.dist-info folder after the pip upgrade... but at least CI can run.

The Homebrew documented workaround is to specify --force-reinstall; this doesn't work - again, because the existing version of pip can't be uninstalled.

Deleting the existing pip version can't work either, because without pip, you can't install pip.

@jpakkane
Copy link
Member

jpakkane commented May 4, 2025

Nice, thanks.

@jpakkane jpakkane merged commit 2f14677 into mesonbuild:master May 4, 2025
9 checks passed
@freakboy3742 freakboy3742 deleted the homebrew-pip-fix branch May 4, 2025 22:05
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.

2 participants