Skip to content

Commit

Permalink
fix: entrypoint on i686 (pypa#1526)
Browse files Browse the repository at this point in the history
When running with docker on macOS aarch64,
i686 images will use qemu which already defaults to an i686 emulation.
This results in the `linux32` command to fail.
Use `linux32` only if `uname -m` reports x86_64.
  • Loading branch information
mayeut authored Aug 27, 2023
1 parent 277bc24 commit bd7ad21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/manylinux-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eu

if [ "${AUDITWHEEL_ARCH}" == "i686" ]; then
if [ "${AUDITWHEEL_ARCH}" == "i686" ] && [ "$(uname -m)" == "x86_64" ]; then
linux32 "$@"
else
exec "$@"
Expand Down

0 comments on commit bd7ad21

Please sign in to comment.