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

index 588c76366eb4c5a957180320d550fdaf509ca010..65213e4a8d0ac4650909757ca001af116409c18a 100644 (file)
@@ -38,7 +38,8 @@ jobs:
       run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
     - name: Install Homebrew dependencies
       run: |
-        brew install pkg-config openssl@3.0 xz gdbm tcl-tk@8 make
+        brew bundle --file=Misc/Brewfile
+        brew install make
         # Because alternate versions are not symlinked into place by default:
         brew link --overwrite tcl-tk@8
     - name: Configure CPython
diff --git a/Misc/Brewfile b/Misc/Brewfile
new file mode 100644 (file)
index 0000000..2459da1
--- /dev/null
@@ -0,0 +1,15 @@
+brew "gdbm"
+brew "mpdecimal"
+brew "openssl@3.0"
+brew "pkg-config"
+brew "tcl-tk@8"
+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?