Skip to content

Commit dfa7bd5

Browse files
committed
update wheel platform tags for macOS ARM64 and x86_64 builds
1 parent 62fc1cb commit dfa7bd5

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

.github/workflows/build_macos_arm64_wheels.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,12 @@ jobs:
225225
export CXX=$(brew --prefix llvm@19)/bin/clang++
226226
pyenv shell 3.8
227227
make wheel
228+
- name: Fix wheel platform tag
229+
run: |
230+
export PATH="$HOME/.pyenv/bin:$PATH"
231+
eval "$(pyenv init -)"
232+
pyenv shell 3.8
233+
python -m wheel tags --platform-tag=macosx_11_0_arm64 --remove dist/*.whl
228234
- name: Audit wheels
229235
run: |
230236
export PATH="$HOME/.pyenv/bin:$PATH"
@@ -233,18 +239,10 @@ jobs:
233239
python -m pip install delocate
234240
ls -lh dist/
235241
for wheel in dist/*.whl; do
236-
echo "Repairing wheel: $wheel"
237242
delocate-wheel -w dist/ "$wheel"
238243
done
239-
ls -lh dist/
240244
echo "Final wheel sizes:"
241245
du -sh dist/*
242-
- name: Fix wheel platform tag
243-
run: |
244-
export PATH="$HOME/.pyenv/bin:$PATH"
245-
eval "$(pyenv init -)"
246-
pyenv shell 3.8
247-
python -m wheel tags --platform-tag=macosx_11_0_arm64 --remove dist/*.whl
248246
- name: Setup core dump
249247
run: |
250248
mkdir -p tmp/core

.github/workflows/build_macos_x86_wheels.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,13 @@ jobs:
227227
export CXX=$(brew --prefix llvm@19)/bin/clang++
228228
pyenv shell 3.9
229229
make wheel
230-
- name: Install delocate and audit wheels
230+
- name: Fix wheel platform tag
231+
run: |
232+
export PATH="$HOME/.pyenv/bin:$PATH"
233+
eval "$(pyenv init -)"
234+
pyenv shell 3.9
235+
python -m wheel tags --platform-tag=macosx_10_15_x86_64 --remove dist/*.whl
236+
- name: Audit wheels
231237
run: |
232238
export PATH="$HOME/.pyenv/bin:$PATH"
233239
eval "$(pyenv init -)"
@@ -238,12 +244,6 @@ jobs:
238244
done
239245
echo "Final wheel sizes:"
240246
du -sh dist/*
241-
- name: Fix wheel platform tag
242-
run: |
243-
export PATH="$HOME/.pyenv/bin:$PATH"
244-
eval "$(pyenv init -)"
245-
pyenv shell 3.9
246-
python -m wheel tags --platform-tag=macosx_10_15_x86_64 --remove dist/*.whl
247247
- name: Setup core dump collection
248248
run: |
249249
mkdir -p tmp/core

0 commit comments

Comments
 (0)