From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 20 Feb 2023 14:52:25 +0000 (-0800) Subject: [3.10] gh-101981: Build macOS as recommended by the devguide (GH-102070) (#102073) X-Git-Tag: v3.10.11~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63877f697d678a7c8ac7c878d8225c0b2724b839;p=thirdparty%2FPython%2Fcpython.git [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 27136310414965a3ea7f835e416cf74b91cefb48) --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f039d71b3c2..0f3ad7b0bcf5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -177,12 +177,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