You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DOC: Correct README build commands and add a verification step
Every build_wheels.py example omitted the pixi environment selector, so
following the README landed in the default environment and aborted.
Also corrects the dockcross image tag defaults, the directory the publish
script searches for tarballs, the step count, and the --cleanup
description, which read as the opposite of what the flag does. Adds the
expected wheel tags and how to confirm a macOS binary matches its tag.
Run `pixi run python3 scripts/build_wheels.py --help` for the full option list.
161
+
Run `pixi run -e macosx-py311 python3 scripts/build_wheels.py --help` for the
162
+
full option list (substitute your own platform environment).
138
163
139
164
> [!NOTE]
140
165
> Building ITK from source can take 1-2 hours on typical hardware. Once complete, use `--build-itk-tarball-cache` to save the result and avoid rebuilding.
@@ -194,6 +219,33 @@ Run from your module root:
194
219
195
220
Finished wheels are placed in `<your-module>/dist/`.
196
221
222
+
#### Verify what you built
223
+
224
+
A build that exits 0 is not proof of a usable wheel. Check the tag and, on
225
+
macOS, that the binary agrees with it:
226
+
227
+
```bash
228
+
ls dist/*.whl # expect one wheel per platform, cp311-abi3
229
+
```
230
+
231
+
| Platform | Expected wheel tag |
232
+
|---|---|
233
+
| Linux x86_64 | `cp311-abi3-manylinux_2_28_x86_64` |
234
+
| Linux aarch64 | `cp311-abi3-manylinux_2_28_aarch64` |
235
+
| macOS arm64 | `cp311-abi3-macosx_14_0_arm64` |
236
+
| Windows x86_64 | `cp311-abi3-win_amd64` |
237
+
238
+
On macOS the binary's minimum version must match the tag. A wheel tagged
239
+
below its real minimum installs on older macOS and then fails in dyld at
240
+
import, which is far harder to diagnose than a refused install:
0 commit comments