mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
gh-101981: Build macOS as recommended by the devguide (GH-102070)
Automerge-Triggered-By: GH:erlend-aasland
This commit is contained in:
parent
b1b375e267
commit
2713631041
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -157,12 +157,19 @@ jobs:
|
||||
PYTHONSTRICTEXTENSIONBUILD: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Prepare homebrew environment variables
|
||||
- name: Install Homebrew dependencies
|
||||
run: brew install pkg-config openssl@1.1 xz gdbm tcl-tk
|
||||
- name: Prepare Homebrew environment variables
|
||||
run: |
|
||||
echo "LDFLAGS=-L$(brew --prefix tcl-tk)/lib" >> $GITHUB_ENV
|
||||
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
|
||||
run: ./configure --with-pydebug --prefix=/opt/python-dev
|
||||
run: |
|
||||
./configure \
|
||||
--with-pydebug \
|
||||
--prefix=/opt/python-dev \
|
||||
--with-openssl="$(brew --prefix openssl@1.1)"
|
||||
- name: Build CPython
|
||||
run: make -j4
|
||||
- name: Display build info
|
||||
|
Loading…
Reference in New Issue
Block a user