From 1001c837de9cdaefe70c3f033dab46e5f139e5a1 Mon Sep 17 00:00:00 2001 From: Matthieu Darbois Date: Sun, 20 Oct 2024 05:02:40 +0200 Subject: [PATCH] fix: re-raise `subprocess.CalledProcessError` when `uname -m` fails on arm (#2049) --- cibuildwheel/oci_container.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cibuildwheel/oci_container.py b/cibuildwheel/oci_container.py index 15b6596c8..491e5f781 100644 --- a/cibuildwheel/oci_container.py +++ b/cibuildwheel/oci_container.py @@ -258,6 +258,8 @@ def __enter__(self) -> Self: container_machine = call( *run_cmd, *platform_args, self.image, *ctr_cmd, capture_stdout=True ).strip() + else: + raise simulate_32_bit = container_machine not in {"i686", "armv7l", "armv8l"} shell_args = ["linux32", "/bin/bash"] if simulate_32_bit else ["/bin/bash"]