Skip to content

Commit b6a4114

Browse files
committed
COMP: Only run auditwheel when building for x64
auditwheel currently does not support cross-compilation.
1 parent 9d963fd commit b6a4114

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

scripts/internal/manylinux-build-wheels.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,15 @@ for PYBIN in "${PYBINARIES[@]}"; do
156156

157157
done
158158

159-
/opt/python/cp37-cp37m/bin/pip3 install auditwheel wheel
160-
# Since there are no external shared libraries to bundle into the wheels
161-
# this step will fixup the wheel switching from 'linux' to 'manylinux2014' tag
162-
for whl in dist/itk_*linux_$(uname -p).whl; do
163-
/opt/python/cp37-cp37m/bin/auditwheel repair --plat manylinux2014_x86_64 ${whl} -w /work/dist/
164-
rm ${whl}
165-
done
159+
if test "${ARCH}" == "x64"; then
160+
/opt/python/cp37-cp37m/bin/pip3 install auditwheel wheel
161+
# Since there are no external shared libraries to bundle into the wheels
162+
# this step will fixup the wheel switching from 'linux' to 'manylinux2014' tag
163+
for whl in dist/itk_*linux_$(uname -p).whl; do
164+
/opt/python/cp37-cp37m/bin/auditwheel repair --plat manylinux2014_x86_64 ${whl} -w /work/dist/
165+
rm ${whl}
166+
done
167+
fi
166168
for itk_wheel in dist/itk-*linux*.whl; do
167169
mv ${itk_wheel} ${itk_wheel/linux/manylinux2014}
168170
done

0 commit comments

Comments
 (0)