Skip to content

Commit 38f1ee9

Browse files
committed
ENH: Add Python 3.10 Linux builds
The updated image also requires sudo permission for the auditwheel install. Use the cp39 over cp37 install for auditwheel.
1 parent c2b6000 commit 38f1ee9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/internal/manylinux-build-common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [[ $# -eq 0 ]]; then
1616
PYBIN=(/opt/python/*/bin)
1717
PYBINARIES=()
1818
for version in "${PYBIN[@]}"; do
19-
if [[ ${version} == *"cp37"* || ${version} == *"cp38"* || ${version} == *"cp39"* ]]; then
19+
if [[ ${version} == *"cp37"* || ${version} == *"cp38"* || ${version} == *"cp39"* || ${version} == *"cp310"* ]]; then
2020
PYBINARIES+=(${version})
2121
fi
2222
done

scripts/internal/manylinux-build-wheels.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ for PYBIN in "${PYBINARIES[@]}"; do
166166
done
167167

168168
if test "${ARCH}" == "x64"; then
169-
/opt/python/cp37-cp37m/bin/pip3 install auditwheel wheel
169+
sudo /opt/python/cp39-cp39/bin/pip3 install auditwheel wheel
170170
# This step will fixup the wheel switching from 'linux' to 'manylinux2014' tag
171171
for whl in dist/itk_*linux_$(uname -p).whl; do
172-
/opt/python/cp37-cp37m/bin/auditwheel repair --plat manylinux2014_x86_64 ${whl} -w /work/dist/
172+
/opt/python/cp39-cp39/bin/auditwheel repair --plat manylinux2014_x86_64 ${whl} -w /work/dist/
173173
rm ${whl}
174174
done
175175
else

0 commit comments

Comments
 (0)