mirror of https://github.com/python/cpython
gh-101981: Consolidate macOS configure steps in CI (GH-102131)
Automerge-Triggered-By: GH:erlend-aasland
This commit is contained in:
parent
c3a178398c
commit
e07b304bb0
|
@ -162,13 +162,11 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install Homebrew dependencies
|
- name: Install Homebrew dependencies
|
||||||
run: brew install pkg-config openssl@1.1 xz gdbm tcl-tk
|
run: brew install pkg-config openssl@1.1 xz gdbm tcl-tk
|
||||||
- name: Prepare Homebrew environment variables
|
|
||||||
run: |
|
|
||||||
echo "CFLAGS=-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" >> $GITHUB_ENV
|
|
||||||
echo "LDFLAGS=-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" >> $GITHUB_ENV
|
|
||||||
echo "PKG_CONFIG_PATH=$(brew --prefix openssl@1.1)/lib/pkgconfig:$(brew --prefix tcl-tk)/lib/pkgconfig" >> $GITHUB_ENV
|
|
||||||
- name: Configure CPython
|
- name: Configure CPython
|
||||||
run: |
|
run: |
|
||||||
|
CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
|
||||||
|
LDFLAGS="-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" \
|
||||||
|
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
|
||||||
./configure \
|
./configure \
|
||||||
--with-pydebug \
|
--with-pydebug \
|
||||||
--prefix=/opt/python-dev \
|
--prefix=/opt/python-dev \
|
||||||
|
|
Loading…
Reference in New Issue