Skip to content

Commit 1666fb0

Browse files
committed
pyproject.toml: Move settings of CIBW_BEFORE_ALL_WINDOWS and CIBW_BEFORE_BUILD_WINDOWS here
1 parent 50c4804 commit 1666fb0

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

.github/workflows/buildwheel.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
env:
3737
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
3838
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
39+
# override setting in pyproject.toml to use msys2 instead of msys64 bash
3940
CIBW_BEFORE_ALL_WINDOWS: msys2 -c bin/cibw_before_all_windows.sh
4041
CIBW_BEFORE_BUILD_WINDOWS: pip install delvewheel && msys2 -c bin/cibw_before_build_windows.sh
4142

bin/cibw.bat

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,4 @@ del /q wheelhouse\*
2424
rem override setting in pyproject.toml
2525
set CIBW_BUILD=cp39-* cp310-* cp311-*
2626

27-
set CIBW_BEFORE_ALL_WINDOWS=C:\msys64\usr\bin\bash bin/cibw_before_all_windows.sh
28-
set CIBW_BEFORE_BUILD_WINDOWS=C:\msys64\usr\bin\bash bin/cibw_before_build_windows.sh
29-
3027
cibuildwheel --platform windows

bin/cibw.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ rm -f wheelhouse/*
1111
# export CIBW_ARCHS_MACOS="x86_64"
1212
export CIBW_ARCHS_MACOS="arm64"
1313

14-
export CIBW_BEFORE_ALL_WINDOWS='C:\\msys64\\usr\\bin\\bash bin/cibw_before_all_windows.sh'
15-
16-
export CIBW_BEFORE_BUILD_WINDOWS='pip install delvewheel && C:\\msys64\\usr\\bin\\bash bin/cibw_before_build_windows.sh'
17-
1814
export CIBW_TEST_COMMAND="python -m flint.test" # override setting in pyproject.toml
1915

2016
# cibuildwheel --platform linux

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ before-all = "bin/cibw_before_all_linux.sh"
3939
before-all = "bin/cibw_before_all_macosx_$(uname -m).sh"
4040

4141
[tool.cibuildwheel.windows]
42+
before-all = "C:\\msys64\\usr\\bin\\bash bin/cibw_before_all_windows.sh"
43+
before-build = "pip install delvewheel && C:\\msys64\\usr\\bin\\bash bin/cibw_before_build_windows.sh"
4244
repair-wheel-command = "bin\\cibw_repair_wheel_command_windows.bat {dest_dir} {wheel}"
4345

4446
[tool.cibuildwheel.windows.environment]

0 commit comments

Comments
 (0)