[Python-checkins] gh-101981: Build macOS as recommended by the devguide (GH-102070)

miss-islington webhook-mailer at python.org
Mon Feb 20 08:33:29 EST 2023


https://github.com/python/cpython/commit/95751b9707ec9985177f2fadc7e19f2f57bc5ad7
commit: 95751b9707ec9985177f2fadc7e19f2f57bc5ad7
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2023-02-20T05:33:21-08:00
summary:

gh-101981: Build macOS as recommended by the devguide (GH-102070)


(cherry picked from commit 27136310414965a3ea7f835e416cf74b91cefb48)

Co-authored-by: Erlend E. Aasland <erlend.aasland at protonmail.com>
Automerge-Triggered-By: GH:erlend-aasland

files:
M .github/workflows/build.yml

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 32535dc6a4e6..beb390eb7734 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -190,12 +190,19 @@ jobs:
       PYTHONSTRICTEXTENSIONBUILD: 1
     steps:
     - uses: actions/checkout at v3
-    - name: Prepare homebrew environment variables
+    - name: Install Homebrew dependencies
+      run: brew install pkg-config openssl at 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 at 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 at 1.1)"
     - name: Build CPython
       run: make -j4
     - name: Display build info



More information about the Python-checkins mailing list