Skip to content

Commit 4ee37ec

Browse files
committed
Move to separate CIBW_BEFORE_BUILD
1 parent 035fb72 commit 4ee37ec

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ jobs:
113113
env:
114114
CIBW_BUILD_VERBOSITY: 1
115115
# add compiled libmagic to the build directory (to include in the wheel)
116-
CIBW_BEFORE_BUILD: ${{ ( startsWith( matrix.os, 'macos' ) && 'sudo -E bash add_libmagic.sh' ) || 'bash add_libmagic.sh' }}
116+
CIBW_BEFORE_BUILD_MACOS: sudo -E bash add_libmagic.sh
117+
CIBW_BEFORE_BUILD_LINUX: bash add_libmagic.sh
118+
CIBW_BEFORE_BUILD_WINDOWS: pip install setuptools
117119
# build macos wheels with maximum backwards compatibility (gcc -mmacosx-version-min flag)
118120
MACOSX_DEPLOYMENT_TARGET: ${{ ( endsWith( matrix.only, 'arm64' ) && '11.0' ) || '10.9' }}
119121
# simple smoke test run on each wheel: this is an HLS MP4 video, only recognised in recent versions of libmagic

pyproject.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)