Skip to content

Commit d34973f

Browse files
committed
wheels: symlink python3-config
1 parent 1decaed commit d34973f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
with:
8484
python-version: 3.8
8585
- name: Build wheels
86-
uses: pypa/cibuildwheel@v2.20.0
86+
uses: pypa/cibuildwheel@v2.21.1
8787
env:
8888
CIBW_SKIP: pp* # The Makefile requires python3-config which is not in pypy
8989
CIBW_ARCHS: ${{ matrix.os.archs }}

.github/workflows/wheels/cibw_before_build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ set -x
55
make clean
66

77
# DEBUG: show python3 and python3-config outputs
8+
if [ "$(uname)" != "Linux" ]; then
9+
# https://github.com/pypa/cibuildwheel/issues/2021
10+
ln -s $(dirname $(readlink -f $(which python3)))/python3-config $(dirname $(which python3))/python3-config
11+
fi
812
python3 --version
913
python3-config --includes
1014

0 commit comments

Comments
 (0)