Skip to content

Commit a0123a5

Browse files
committed
BUG: Support auditwheel repair for ARM builds
Addresses issue where TBB library was bundled with x64 but not ARM module wheels.
1 parent cefb1ce commit a0123a5

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

scripts/internal/manylinux-build-module-wheels.sh

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,16 @@ for PYBIN in "${PYBINARIES[@]}"; do
117117
|| exit 1
118118
done
119119

120-
if test "${ARCH}" == "x64"; then
121-
# Make sure auditwheel is installed for this python exe before importing
122-
# it in auditwheel_whitelist_monkeypatch.py
123-
sudo ${Python3_EXECUTABLE} -m pip install auditwheel
124-
for whl in dist/*linux_$(uname -m).whl; do
125-
# Repair wheel using monkey patch to exclude shared libraries provided in whitelist
126-
${Python3_EXECUTABLE} "${script_dir}/auditwheel_whitelist_monkeypatch.py" \
127-
repair ${whl} -w /work/dist/ --whitelist "${EXCLUDE_LIBS}"
128-
rm ${whl}
129-
done
130-
fi
120+
# Make sure auditwheel is installed for this python exe before importing
121+
# it in auditwheel_whitelist_monkeypatch.py
122+
sudo ${Python3_EXECUTABLE} -m pip install auditwheel
123+
for whl in dist/*linux*$(uname -m).whl; do
124+
# Repair wheel using monkey patch to exclude shared libraries provided in whitelist
125+
${Python3_EXECUTABLE} "${script_dir}/auditwheel_whitelist_monkeypatch.py" \
126+
repair ${whl} -w /work/dist/ --whitelist "${EXCLUDE_LIBS}"
127+
rm ${whl}
128+
done
129+
131130
if compgen -G "dist/itk*-linux*.whl" > /dev/null; then
132131
for itk_wheel in dist/itk*-linux*.whl; do
133132
mv ${itk_wheel} ${itk_wheel/linux/manylinux${MANYLINUX_VERSION}}

0 commit comments

Comments
 (0)