Skip to content

Commit 4517a37

Browse files
committed
Set PKG_CONFIG_PATH in CI workflow
1 parent e3576c0 commit 4517a37

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/buildwheel.yml

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ jobs:
3636
- run: choco install -y --stoponfirstfailure --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite
3737
if: ${{ matrix.os == 'windows-2019' }}
3838

39+
# We have to set this here rather than in the cibuildwheel config
40+
- run: echo "PKG_CONFIG_PATH=${{ github.workspace }}/.local/lib/pkgconfig" >> $env:GITHUB_ENV
41+
if: ${{ matrix.os == 'windows-2019' }}
42+
3943
- name: Build wheels
4044
uses: pypa/[email protected]
4145
env:

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ PKG_CONFIG_PATH = "$(pwd)/.local/lib/pkgconfig"
3939

4040
[tool.cibuildwheel.windows.environment]
4141
# Setting PKG_CONFIG_PATH here breaks pkgconfig for some reason...
42-
PKG_CONFIG_PATH = "$(pwd)/.local/lib/pkgconfig:$PKG_CONFIG_PATH"
42+
# We set it in the CI workflow instead.
43+
# PKG_CONFIG_PATH = "$(pwd)/.local/lib/pkgconfig:$PKG_CONFIG_PATH"
4344

4445
[tool.cibuildwheel.linux]
4546
before-all = "bin/cibw_before_all_linux.sh"

0 commit comments

Comments
 (0)