Skip to content

Commit b7df44e

Browse files
committed
scripts: manylinux module wheels handle 3.8 loss of m
The identifier for CPython 3.8 changed from cp38-cp38m to cp38-cp38, but this was not reflected in the manylinux image.
1 parent 055635a commit b7df44e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ for PYBIN in "${PYBINARIES[@]}"; do
2424
if [[ -e /work/requirements-dev.txt ]]; then
2525
${PYBIN}/pip install --upgrade -r /work/requirements-dev.txt
2626
fi
27-
itk_build_dir=/work/ITK-$(basename $(dirname ${PYBIN}))-manylinux1_${ARCH}
28-
ln -fs /ITKPythonPackage/ITK-$(basename $(dirname ${PYBIN}))-manylinux1_${ARCH} $itk_build_dir
27+
version=$(basename $(dirname ${PYBIN}))
28+
# Remove "m" -- not present in Python 3.8 and later
29+
version=${version:0:9}
30+
itk_build_dir=/work/$(basename /ITKPythonPackage/ITK-${version}*-manylinux1_${ARCH})
31+
ln -fs /ITKPythonPackage/ITK-${version}*-manylinux1_${ARCH} $itk_build_dir
2932
if [[ ! -d ${itk_build_dir} ]]; then
3033
echo 'ITK build tree not available!' 1>&2
3134
exit 1

0 commit comments

Comments
 (0)