summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2025-05-03 14:48:49 +0800
committerJussi Pakkanen <jussi.pakkanen@mailbox.org>2025-05-04 19:33:01 +0300
commit2f146775ebc84ea80a80f0583ea85782742fd57f (patch)
tree3edf13cf272414671e74650170528c5b582ea2ef
parentf01ae767d50ed4b25ad33c02b5bf177fb8ad2e23 (diff)
downloadmeson-2f146775ebc84ea80a80f0583ea85782742fd57f.tar.gz
Work around the mising RECORD file with homebrew pip.
-rw-r--r--.github/workflows/macos.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 2d2ea39c0..9013beac6 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -94,6 +94,11 @@ jobs:
# productive -- only victim blaming -- however it bites particularly badly because this is a container/VM
# See commit 5c479d7a13a518c18ccb4dc3b6bdd7bfc2a9bdb5 for a more thorough analysis.
find /opt/homebrew/Cellar/python* -name EXTERNALLY-MANAGED -print0 | xargs -0 rm -vf
+ # Homebrew's installation of pip 25.0.1 in Python 3.13.3 is broken; it
+ # doesn't include a RECORD file, so it can't be upgraded by pip. Create
+ # a dummy RECORD file.
+ PIP_RECORD=$(python3 -c "import pip, os; print(f'{os.path.dirname(pip.__file__)}-{pip.__version__}.dist-info/RECORD')")
+ touch $PIP_RECORD
# use python3 from homebrew because it is a valid framework, unlike the actions one:
# https://github.com/actions/setup-python/issues/58
- run: brew install pkg-config ninja llvm qt@5 boost ldc hdf5 openmpi lapack scalapack sdl2 boost-python3 gtk-doc zstd ncurses objfw libomp