-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
CI: Move Homebrew dependencies into Brewfile #148335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 4 commits
2b36429
301147e
f54be75
f8abb34
c37c6da
3a804b8
b29865e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| brew "gdbm" | ||
| brew "make" | ||
| brew "openssl@3.5" | ||
| brew "pkg-config" | ||
| brew "tcl-tk@9" | ||
| brew "xz" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like they are already part of the macOS runners, so we never had to add them. But I'll add so we can recommend the Brewfile in the devguide. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,9 +37,7 @@ 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 | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will backport to 3.10, but we still need to link |
||
| brew bundle --file=.github/workflows/Brewfile | ||
| - name: Configure CPython | ||
| run: | | ||
| MACOSX_DEPLOYMENT_TARGET=10.15 \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to install a third-party
make? We've always just used the Apple-supplied one as shown in the devguide.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, let's see...
It was added in #123020 because BSD make (the macOS default) was found to have a race condition when writing output to file across multiple jobs. We needed the output file to postprocess warnings.
And GNU make (from Homebrew, executable
gmake) has--output-syncwhich prevents this race.See resolved comment thread at #123020 (comment).
So we can move
makeout of the Brewfile, because we don't want that as part of the devguide recommendation, and do keep regularbrew install makeon CI.