Skip to content

Commit 63877f6

Browse files
[3.10] gh-101981: Build macOS as recommended by the devguide (GH-102070) (#102073)
gh-101981: Build macOS as recommended by the devguide (GH-102070) (cherry picked from commit 2713631)
1 parent f193fad commit 63877f6

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/build.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,19 @@ jobs:
177177
PYTHONSTRICTEXTENSIONBUILD: 1
178178
steps:
179179
- uses: actions/checkout@v3
180-
- name: Prepare homebrew environment variables
180+
- name: Install Homebrew dependencies
181+
run: brew install pkg-config [email protected] xz gdbm tcl-tk
182+
- name: Prepare Homebrew environment variables
181183
run: |
182-
echo "LDFLAGS=-L$(brew --prefix tcl-tk)/lib" >> $GITHUB_ENV
184+
echo "CFLAGS=-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" >> $GITHUB_ENV
185+
echo "LDFLAGS=-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" >> $GITHUB_ENV
183186
echo "PKG_CONFIG_PATH=$(brew --prefix [email protected])/lib/pkgconfig:$(brew --prefix tcl-tk)/lib/pkgconfig" >> $GITHUB_ENV
184187
- name: Configure CPython
185-
run: ./configure --with-pydebug --prefix=/opt/python-dev
188+
run: |
189+
./configure \
190+
--with-pydebug \
191+
--prefix=/opt/python-dev \
192+
--with-openssl="$(brew --prefix [email protected])"
186193
- name: Build CPython
187194
run: make -j4
188195
- name: Display build info

0 commit comments

Comments
 (0)