Skip to content

Commit 0bf7fe6

Browse files
erlend-aaslandmiss-islington
authored andcommitted
pythongh-101981: Consolidate macOS configure steps in CI (pythonGH-102131)
(cherry picked from commit e07b304) Co-authored-by: Erlend E. Aasland <[email protected]> Automerge-Triggered-By: GH:erlend-aasland
1 parent 3cc0012 commit 0bf7fe6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,11 @@ jobs:
195195
- uses: actions/checkout@v3
196196
- name: Install Homebrew dependencies
197197
run: brew install pkg-config [email protected] xz gdbm tcl-tk
198-
- name: Prepare Homebrew environment variables
199-
run: |
200-
echo "CFLAGS=-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" >> $GITHUB_ENV
201-
echo "LDFLAGS=-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" >> $GITHUB_ENV
202-
echo "PKG_CONFIG_PATH=$(brew --prefix [email protected])/lib/pkgconfig:$(brew --prefix tcl-tk)/lib/pkgconfig" >> $GITHUB_ENV
203198
- name: Configure CPython
204199
run: |
200+
CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
201+
LDFLAGS="-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" \
202+
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
205203
./configure \
206204
--with-pydebug \
207205
--prefix=/opt/python-dev \

0 commit comments

Comments
 (0)