[Python-checkins] gh-101981: Consolidate macOS configure steps in CI (GH-102131)

miss-islington webhook-mailer at python.org
Thu Feb 23 10:02:31 EST 2023


https://github.com/python/cpython/commit/e07b304bb004e1298283c82bd135dd5ef96a90cc
commit: e07b304bb004e1298283c82bd135dd5ef96a90cc
branch: main
author: Erlend E. Aasland <erlend.aasland at protonmail.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2023-02-23T07:02:23-08:00
summary:

gh-101981: Consolidate macOS configure steps in CI (GH-102131)



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 eec11e25a7c7..2241b0b8aa40 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -162,13 +162,11 @@ jobs:
     - uses: actions/checkout at v3
     - name: Install Homebrew dependencies
       run: brew install pkg-config openssl at 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 at 1.1)/lib/pkgconfig:$(brew --prefix tcl-tk)/lib/pkgconfig" >> $GITHUB_ENV
     - name: Configure CPython
       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 \
           --with-pydebug \
           --prefix=/opt/python-dev \



More information about the Python-checkins mailing list