https://github.com/python/cpython/commit/b79112fb349ccc0b807610dd31a50712a8bbf6d8
commit: b79112fb349ccc0b807610dd31a50712a8bbf6d8
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-05-22T14:44:08Z
summary:

[3.15] CI: Move Homebrew dependencies into Brewfile (GH-148335) (#149882)

Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Brett Cannon <[email protected]>

files:
A Misc/Brewfile
M .github/workflows/reusable-macos.yml

diff --git a/.github/workflows/reusable-macos.yml 
b/.github/workflows/reusable-macos.yml
index f10503055b2259a..93b419159fa8177 100644
--- a/.github/workflows/reusable-macos.yml
+++ b/.github/workflows/reusable-macos.yml
@@ -38,9 +38,8 @@ jobs:
       run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
     - name: Install Homebrew dependencies
       run: |
-        brew install pkg-config [email protected] 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
index 000000000000000..c799f099957f757
--- /dev/null
+++ b/Misc/Brewfile
@@ -0,0 +1,14 @@
+brew "gdbm"
+brew "mpdecimal"
+brew "[email protected]"
+brew "pkg-config"
+brew "tcl-tk@9"
+brew "xz"
+brew "zstd"
+
+brew "bzip2" 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?

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to