Skip to content

Commit cc1cecc

Browse files
authored
ci: fix Mingw64 pip install (#101)
1 parent 1f4f735 commit cc1cecc

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
@@ -45,11 +45,22 @@ jobs:
4545
install: >-
4646
mingw-w64-x86_64-gcc
4747
mingw-w64-x86_64-python-pip
48+
mingw-w64-x86_64-python-wheel
4849
4950
- uses: actions/checkout@v2
5051

52+
- name: Install pybind11
53+
# This is required because --no-build-isolation disable dependences
54+
# installation
55+
run: pip install pybind11
56+
5157
- name: Build and install
52-
run: pip install .
58+
# --no-build-isolation is required because the vanilla setuptool does not
59+
# support Mingw64.See patches here:
60+
# https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-python-setuptools
61+
# Without those patches build_ext fails with:
62+
# error: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
63+
run: pip install --no-build-isolation .
5364

5465
- name: Test
5566
run: python tests/test.py

0 commit comments

Comments
 (0)