Return the multiarch descriptor for a given host triple.
(host: str)
| 284 | |
| 285 | |
| 286 | def apple_multiarch(host: str) -> str: |
| 287 | """Return the multiarch descriptor for a given host triple.""" |
| 288 | for _, platform_slices in HOSTS.items(): |
| 289 | for slice_name, slice_parts in platform_slices.items(): |
| 290 | for host_triple, multiarch in slice_parts.items(): |
| 291 | if host == host_triple: |
| 292 | return multiarch |
| 293 | |
| 294 | raise KeyError(host) |
| 295 | |
| 296 | |
| 297 | def unpack_deps( |