Skip to content

Commit d281da8

Browse files
committed
fix: entrypoint for armv7l
1 parent 48669de commit d281da8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docker/build_scripts/build-cpython.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ if [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ] ; then
5050
export TCLTK_LIBS="-ltk8.6 -ltcl8.6"
5151
fi
5252

53-
if [ "${BASE_POLICY}_${AUDITWHEEL_ARCH}" == "musllinux_armv7l" ]; then
53+
if [ "${BASE_POLICY}_${AUDITWHEEL_ARCH}" == "manylinux_armv7l" ]; then
54+
CONFIGURE_ARGS="${CONFIGURE_ARGS} --build=armv7l-unknown-linux-gnueabihf"
55+
elif [ "${BASE_POLICY}_${AUDITWHEEL_ARCH}" == "musllinux_armv7l" ]; then
5456
CONFIGURE_ARGS="${CONFIGURE_ARGS} --build=arm-linux-musleabihf"
5557
fi
5658

@@ -71,6 +73,8 @@ if [ "${OPENSSL_PREFIX}" != "" ]; then
7173
esac
7274
fi
7375

76+
unset _PYTHON_HOST_PLATFORM
77+
7478
# configure with hardening options only for the interpreter & stdlib C extensions
7579
# do not change the default for user built extension (yet?)
7680
./configure \

docker/manylinux-entrypoint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [ "${AUDITWHEEL_ARCH}" == "i686" ] && [ "$(uname -m)" == "x86_64" ]; then
66
linux32 "$@"
77
elif [ "${AUDITWHEEL_ARCH}" == "armv7l" ] && [ "$(uname -m)" != "armv7l" ]; then
88
if [ "$(linux32 uname -m)" == "armv8l" ]; then
9-
export _PYTHON_HOST_PLATFORM="linux_armv7l"
9+
export _PYTHON_HOST_PLATFORM="linux-armv7l"
1010
fi
1111
linux32 "$@"
1212
else

0 commit comments

Comments
 (0)