]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101981: Build macOS as recommended by the devguide (GH-102070)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 Feb 2023 13:33:21 +0000 (05:33 -0800)
committerGitHub <noreply@github.com>
Mon, 20 Feb 2023 13:33:21 +0000 (05:33 -0800)
(cherry picked from commit 27136310414965a3ea7f835e416cf74b91cefb48)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Automerge-Triggered-By: GH:erlend-aasland
.github/workflows/build.yml

index 32535dc6a4e6332e946466340882df55e5cf8292..beb390eb77342ce00bb6cd9bb2b90c6657775382 100644 (file)
@@ -190,12 +190,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