Skip to content

Commit b6f0b49

Browse files
authored
Update build_and_deploy.yml
Adds installation for Python development headers
1 parent ae1cccc commit b6f0b49

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build_and_deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ jobs:
2727
- name: Set environment variables
2828
run: echo "CIBW_ARCHS=${{ matrix.os-arch.arch }}" >> $GITHUB_ENV
2929

30+
- name: Install Python development headers
31+
- run: |
32+
PYTHON_VERSION=$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
33+
sudo apt-get update
34+
sudo apt-get install -y python${PYTHON_VERSION}-dev
35+
3036
- name: Build wheels
3137
uses: pypa/cibuildwheel@v2.21.3
3238

0 commit comments

Comments
 (0)