File tree 7 files changed +26
-6
lines changed
7 files changed +26
-6
lines changed Original file line number Diff line number Diff line change 57
57
virt : vm
58
58
group : edge
59
59
env : POLICY="musllinux_1_2" PLATFORM="aarch64"
60
+ - arch : arm64-graviton2
61
+ virt : vm
62
+ group : edge
63
+ env : POLICY="musllinux_1_2" PLATFORM="armv7l"
60
64
- arch : s390x
61
65
env : POLICY="musllinux_1_2" PLATFORM="s390x"
62
66
- arch : ppc64le
Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ Toolchain: GCC 13
184
184
- aarch64 image: ``quay.io/pypa/musllinux_1_2_aarch64 ``
185
185
- ppc64le image: ``quay.io/pypa/musllinux_1_2_ppc64le ``
186
186
- s390x image: ``quay.io/pypa/musllinux_1_2_s390x ``
187
+ - armv7l image: ``quay.io/pypa/musllinux_1_2_armv7l ``
187
188
188
189
189
190
musllinux_1_1 (Alpine Linux 2.12 based)
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ elif [ "${PLATFORM}" == "ppc64le" ]; then
27
27
elif [ " ${PLATFORM} " == " s390x" ]; then
28
28
GOARCH=" s390x"
29
29
MULTIARCH_PREFIX=" s390x/"
30
+ elif [ " ${PLATFORM} " == " armv7l" ]; then
31
+ GOARCH=" arm/v7"
32
+ MULTIARCH_PREFIX=" arm32v7/"
30
33
else
31
34
echo " Unsupported platform: '${PLATFORM} '"
32
35
exit 1
Original file line number Diff line number Diff line change @@ -46,10 +46,14 @@ if [ "${CPYTHON_VERSION}" == "3.6.15" ]; then
46
46
CFLAGS_EXTRA=" ${CFLAGS_EXTRA} -fno-tree-loop-vectorize -fno-tree-slp-vectorize"
47
47
fi
48
48
if [ " ${AUDITWHEEL_POLICY} " == " manylinux2014" ] ; then
49
- # Python 3.11+
49
+ # Python 3.11+
50
50
export TCLTK_LIBS=" -ltk8.6 -ltcl8.6"
51
51
fi
52
52
53
+ if [ " ${BASE_POLICY} _${AUDITWHEEL_ARCH} " == " musllinux_armv7l" ]; then
54
+ CONFIGURE_ARGS=" ${CONFIGURE_ARGS} --build=arm-linux-musleabihf"
55
+ fi
56
+
53
57
OPENSSL_PREFIX=$( find /opt/_internal -maxdepth 1 -name ' openssl*' )
54
58
if [ " ${OPENSSL_PREFIX} " != " " ]; then
55
59
CONFIGURE_ARGS=" ${CONFIGURE_ARGS} --with-openssl=${OPENSSL_PREFIX} "
Original file line number Diff line number Diff line change @@ -80,10 +80,12 @@ pipx upgrade-shared --pip-args="--no-index --find-links=/tmp/pinned-wheels"
80
80
# install other tools with pipx
81
81
for TOOL_PATH in $( find ${MY_DIR} /requirements-tools -type f) ; do
82
82
TOOL=$( basename ${TOOL_PATH} )
83
- # uv doesn't provide musl s390x wheels due to Rust issues
84
- if [[ " ${TOOL} " != " uv" || " ${BASE_POLICY} -${AUDITWHEEL_ARCH} " != " musllinux-s390x" ]]; then
85
- pipx install --pip-args=" --require-hashes -r ${TOOL_PATH} --only-binary" ${TOOL}
86
- fi
83
+ case ${AUDITWHEEL_PLAT} -${TOOL} in
84
+ musllinux* _armv7l-swig) apk add --no-cache swig;;
85
+ musllinux* _armv7l-cmake) apk add --no-cache cmake;;
86
+ musllinux* _s390x-uv) continue ;; # uv doesn't provide musl s390x wheels due to Rust issues
87
+ * ) pipx install --pip-args=" --require-hashes -r ${TOOL_PATH} --only-binary" ${TOOL} ;;
88
+ esac
87
89
done
88
90
89
91
# We do not need the precompiled .pyc and .pyo files.
Original file line number Diff line number Diff line change 4
4
5
5
if [ " ${AUDITWHEEL_ARCH} " == " i686" ] && [ " $( uname -m) " == " x86_64" ]; then
6
6
linux32 " $@ "
7
+ elif [ " ${AUDITWHEEL_ARCH} " == " armv7l" ] && [ " $( uname -m) " != " armv7l" ]; then
8
+ if [ " $( linux32 uname -m) " == " armv8l" ]; then
9
+ export _PYTHON_HOST_PLATFORM=" linux_armv7l"
10
+ fi
11
+ linux32 " $@ "
7
12
else
8
13
exec " $@ "
9
14
fi
Original file line number Diff line number Diff line change @@ -100,8 +100,9 @@ for PYTHON in /opt/python/*/bin/python; do
100
100
echo " invalid answer, expecting 42"
101
101
exit 1
102
102
fi
103
- if [ " ${PYVERS} " != " 3.6" ] && [ " ${PYVERS} " != " 3.7" ] && [ " ${IMPLEMENTATION} " != " graalpy" ] && [ " ${AUDITWHEEL_POLICY: 0: 9} _${AUDITWHEEL_ARCH} " != " musllinux_s390x" ] && [ " ${AUDITWHEEL_ARCH} " != " ppc64le" ]; then
103
+ if [ " ${PYVERS} " != " 3.6" ] && [ " ${PYVERS} " != " 3.7" ] && [ " ${IMPLEMENTATION} " != " graalpy" ] && [ " ${AUDITWHEEL_POLICY: 0: 9} _${AUDITWHEEL_ARCH} " != " musllinux_s390x" ] && [ " ${AUDITWHEEL_ARCH} " != " ppc64le" ] && [ " ${AUDITWHEEL_ARCH} " != " armv7l " ] ; then
104
104
# no uv on musllinux s390x
105
+ # FIXME, armv7l test fails on Travis CI but works with qemu (maybe armv8l vs armv7l ?)
105
106
# FIXME, ppc64le test fails on Travis CI but works with qemu
106
107
UV_PYTHON=/tmp/uv-test-${IMPLEMENTATION}${PYVERS} /bin/python
107
108
uv venv --python ${PYTHON} /tmp/uv-test-${IMPLEMENTATION}${PYVERS}
You can’t perform that action at this time.
0 commit comments