Don't attempt to test CPython 3.8 wheels on Apple Silicon. (#1171)

I've added a warning for users, so they know that it doesn't get tested.
See discussion in #1169 for the reason why.

Fixes #1168, fixes #1169
This commit is contained in:
Joe Rickerby
2022-07-14 11:42:40 +02:00
committed by GitHub
parent 88d432ca21
commit 57800921c5
3 changed files with 53 additions and 3 deletions
+17
View File
@@ -465,6 +465,23 @@ def build(options: Options, tmp_path: Path) -> None:
# skip this test
continue
if testing_arch == "arm64" and config.identifier.startswith("cp38-"):
log.warning(
unwrap(
"""
While cibuildwheel can build CPython 3.8 universal2/arm64 wheels, we
cannot test the arm64 part of them, even when running on an Apple
Silicon machine. This is because we use the x86_64 installer of
CPython 3.8. See the discussion in
https://github.com/pypa/cibuildwheel/pull/1169 for the details. To
silence this warning, set `CIBW_TEST_SKIP: cp38-macosx_*:arm64`.
"""
)
)
# skip this test
continue
log.step(
"Testing wheel..."
if testing_arch == machine_arch