]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
CI: Move Homebrew dependencies into Brewfile (#148335)
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Fri, 15 May 2026 14:03:46 +0000 (17:03 +0300)
committerGitHub <noreply@github.com>
Fri, 15 May 2026 14:03:46 +0000 (17:03 +0300)
Co-authored-by: Brett Cannon <brett@python.org>
.github/workflows/reusable-macos.yml
Misc/Brewfile [new file with mode: 0644]

index f10503055b2259ad59bee98c54369dc310b75476..93b419159fa8177c0670583a949c091728198e72 100644 (file)
@@ -38,9 +38,8 @@ jobs:
       run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
     - name: Install Homebrew dependencies
       run: |
-        brew install pkg-config openssl@3.5 xz gdbm tcl-tk@9 make
-        # Because alternate versions are not symlinked into place by default:
-        brew link --overwrite tcl-tk@9
+        brew bundle --file=Misc/Brewfile
+        brew install make
     - name: Configure CPython
       run: |
         MACOSX_DEPLOYMENT_TARGET=10.15 \
diff --git a/Misc/Brewfile b/Misc/Brewfile
new file mode 100644 (file)
index 0000000..b62c6e9
--- /dev/null
@@ -0,0 +1,15 @@
+brew "gdbm"
+brew "mpdecimal"
+brew "openssl@3.5"
+brew "pkg-config"
+brew "tcl-tk@9"
+brew "xz"
+brew "zstd"
+
+brew "bzip2" if OS.linux?
+brew "expat" if OS.linux?
+brew "libedit" if OS.linux?
+brew "libffi" if OS.linux?
+brew "ncurses" if OS.linux?
+brew "unzip" if OS.linux?
+brew "zlib-ng-compat" if OS.linux?