wheels: symlink python3-config

This commit is contained in:
Mohamed Gaber 2024-09-29 12:28:18 +03:00
parent ab84c105c1
commit 67f17a1c97
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View File

@ -83,7 +83,7 @@ jobs:
with:
python-version: 3.8
- name: Build wheels
uses: pypa/cibuildwheel@v2.20.0
uses: pypa/cibuildwheel@v2.21.1
env:
CIBW_SKIP: pp* # The Makefile requires python3-config which is not in pypy
CIBW_ARCHS: ${{ matrix.os.archs }}

View File

@ -5,6 +5,10 @@ set -x
make clean
# DEBUG: show python3 and python3-config outputs
if [ "$(uname)" != "Linux" ]; then
# https://github.com/pypa/cibuildwheel/issues/2021
ln -s $(dirname $(readlink -f $(which python3)))/python3-config $(dirname $(which python3))/python3-config
fi
python3 --version
python3-config --includes