Skip to content

Commit

Permalink
fix: re-raise subprocess.CalledProcessError when uname -m fails o…
Browse files Browse the repository at this point in the history
…n arm (pypa#2049)
  • Loading branch information
mayeut authored Oct 20, 2024
1 parent 18f54c0 commit 1001c83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cibuildwheel/oci_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 1001c83

Please sign in to comment.