Skip to content

Commit a318a9d

Browse files
hugovkbrettcannon
andauthored
CI: Move Homebrew dependencies into Brewfile (#148335)
Co-authored-by: Brett Cannon <brett@python.org>
1 parent 3fafbc8 commit a318a9d

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

.github/workflows/reusable-macos.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ jobs:
3838
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
3939
- name: Install Homebrew dependencies
4040
run: |
41-
brew install pkg-config openssl@3.5 xz gdbm tcl-tk@9 make
42-
# Because alternate versions are not symlinked into place by default:
43-
brew link --overwrite tcl-tk@9
41+
brew bundle --file=Misc/Brewfile
42+
brew install make
4443
- name: Configure CPython
4544
run: |
4645
MACOSX_DEPLOYMENT_TARGET=10.15 \

Misc/Brewfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
brew "gdbm"
2+
brew "mpdecimal"
3+
brew "openssl@3.5"
4+
brew "pkg-config"
5+
brew "tcl-tk@9"
6+
brew "xz"
7+
brew "zstd"
8+
9+
brew "bzip2" if OS.linux?
10+
brew "expat" if OS.linux?
11+
brew "libedit" if OS.linux?
12+
brew "libffi" if OS.linux?
13+
brew "ncurses" if OS.linux?
14+
brew "unzip" if OS.linux?
15+
brew "zlib-ng-compat" if OS.linux?

0 commit comments

Comments
 (0)