Skip to content

Commit 0fcb533

Browse files
committed
GHA: Fix Mingw64 pip install
1 parent a53cfc6 commit 0fcb533

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/pip.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,22 @@ jobs:
2121
install: >-
2222
mingw-w64-x86_64-gcc
2323
mingw-w64-x86_64-python-pip
24+
mingw-w64-x86_64-python-wheel
2425
2526
- uses: actions/checkout@v2
2627

28+
- name: Install pybind11
29+
# This is required because --no-build-isolation disable dependences
30+
# installation
31+
run: pip install pybind11
32+
2733
- name: Build and install
28-
run: pip install .
34+
# --no-build-isolation is required because the vanilla setuptool does not
35+
# support Mingw64.See patches here:
36+
# https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-python-setuptools
37+
# Without those patches build_ext fails with:
38+
# error: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
39+
run: pip install --no-build-isolation .
2940

3041
- name: Test
3142
run: python tests/test.py

0 commit comments

Comments
 (0)