Skip to content

Commit 50c4804

Browse files
committed
pyproject.toml: Move settings of CIBW_BEFORE_ALL_MACOS here
1 parent c7f6aaa commit 50c4804

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/buildwheel.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
env:
3737
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
3838
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
39-
CIBW_BEFORE_ALL_MACOS: bin/cibw_before_all_macosx_x86_64.sh
4039
CIBW_BEFORE_ALL_WINDOWS: msys2 -c bin/cibw_before_all_windows.sh
4140
CIBW_BEFORE_BUILD_WINDOWS: pip install delvewheel && msys2 -c bin/cibw_before_build_windows.sh
4241

bin/cibw.sh

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

14-
# export CIBW_BEFORE_ALL_MACOS=bin/cibw_before_all_macosx_x86_64.sh
15-
export CIBW_BEFORE_ALL_MACOS=bin/cibw_before_all_macosx_arm64.sh
1614
export CIBW_BEFORE_ALL_WINDOWS='C:\\msys64\\usr\\bin\\bash bin/cibw_before_all_windows.sh'
1715

1816
export CIBW_BEFORE_BUILD_WINDOWS='pip install delvewheel && C:\\msys64\\usr\\bin\\bash bin/cibw_before_build_windows.sh'

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ LD_LIBRARY_PATH = "$(pwd)/.local/lib:$LD_LIBRARY_PATH"
3636
before-all = "bin/cibw_before_all_linux.sh"
3737

3838
[tool.cibuildwheel.macos]
39+
before-all = "bin/cibw_before_all_macosx_$(uname -m).sh"
3940

4041
[tool.cibuildwheel.windows]
4142
repair-wheel-command = "bin\\cibw_repair_wheel_command_windows.bat {dest_dir} {wheel}"

0 commit comments

Comments
 (0)