Skip to content

Commit

Permalink
fix: test uv on armv7l (#1707)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut authored Nov 10, 2024
1 parent f3c927b commit 97c8b6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/manylinux-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ "${AUDITWHEEL_ARCH}" == "i686" ] && [ "$(uname -m)" == "x86_64" ]; then
linux32 "$@"
elif [ "${AUDITWHEEL_ARCH}" == "armv7l" ] && [ "$(uname -m)" != "armv7l" ]; then
if [ "$(linux32 uname -m)" == "armv8l" ]; then
export _PYTHON_HOST_PLATFORM="linux_armv7l"
export _PYTHON_HOST_PLATFORM="linux-armv7l"
fi
linux32 "$@"
else
Expand Down
3 changes: 1 addition & 2 deletions tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,8 @@ for PYTHON in /opt/python/*/bin/python; do
echo "invalid answer, expecting 42"
exit 1
fi
if [ "${PYVERS}" != "3.6" ] && [ "${PYVERS}" != "3.7" ] && [ "${IMPLEMENTATION}" != "graalpy" ] && [ "${AUDITWHEEL_POLICY:0:9}_${AUDITWHEEL_ARCH}" != "musllinux_s390x" ] && [ "${AUDITWHEEL_ARCH}" != "armv7l" ] && [ "${AUDITWHEEL_ARCH}" != "riscv64" ]; then
if [ "${PYVERS}" != "3.6" ] && [ "${PYVERS}" != "3.7" ] && [ "${IMPLEMENTATION}" != "graalpy" ] && [ "${AUDITWHEEL_POLICY:0:9}_${AUDITWHEEL_ARCH}" != "musllinux_s390x" ] && [ "${AUDITWHEEL_ARCH}" != "riscv64" ]; then
# no uv on musllinux s390x
# FIXME, armv7l test fails on Travis CI but works with qemu (maybe armv8l vs armv7l ?)
UV_PYTHON=/tmp/uv-test-${IMPLEMENTATION}${PYVERS}/bin/python
uv venv --python ${PYTHON} /tmp/uv-test-${IMPLEMENTATION}${PYVERS}
uv pip install --python ${UV_PYTHON} ${REPAIRED_WHEEL}
Expand Down

0 comments on commit 97c8b6d

Please sign in to comment.