@@ -34,10 +34,10 @@ pushd /work/ITK-source > /dev/null 2>&1
3434 cmake -DITKPythonPackage_BUILD_PYTHON:PATH=0 -G Ninja ../
3535 ninja
3636popd > /dev/null 2>&1
37- tbb_dir=/work/oneTBB-prefix/lib64 /cmake/TBB
37+ tbb_dir=/work/oneTBB-prefix/lib /cmake/TBB
3838# So auditwheel can find the libs
3939sudo ldconfig
40- export LD_LIBRARY_PATH=${LD_LIBRARY_PATH} :/work/oneTBB-prefix/lib64 :/usr/lib:/usr/lib64
40+ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH} :/work/oneTBB-prefix/lib :/usr/lib:/usr/lib64
4141
4242SINGLE_WHEEL=0
4343
@@ -56,7 +56,7 @@ for PYBIN in "${PYBINARIES[@]}"; do
5656 build_type=" Release"
5757 compile_flags=" -O3 -DNDEBUG"
5858 source_path=/work/ITK-source/ITK
59- build_path=/work/ITK-$( basename $( dirname ${PYBIN} ) ) -manylinux2014_ ${ARCH}
59+ build_path=/work/ITK-$( basename $( dirname ${PYBIN} ) ) -manylinux ${MANYLINUX_VERSION} _ ${ARCH}
6060 SETUP_PY_CONFIGURE=" ${script_dir} /../setup_py_configure.py"
6161 SKBUILD_CMAKE_INSTALL_PREFIX=$( ${Python3_EXECUTABLE} -c " from skbuild.constants import CMAKE_INSTALL_DIR; print(CMAKE_INSTALL_DIR)" )
6262
@@ -81,7 +81,7 @@ for PYBIN in "${PYBINARIES[@]}"; do
8181 -DITK_WRAP_double:BOOL=ON \
8282 -DITK_WRAP_complex_double:BOOL=ON \
8383 -DITK_WRAP_IMAGE_DIMS:STRING=" 2;3;4" \
84- -DCMAKE_CXX_COMPILER_TARGET:STRING=$( uname -p ) -linux-gnu \
84+ -DCMAKE_CXX_COMPILER_TARGET:STRING=$( uname -m ) -linux-gnu \
8585 -DCMAKE_CXX_FLAGS:STRING=" $compile_flags " \
8686 -DCMAKE_C_FLAGS:STRING=" $compile_flags " \
8787 -DCMAKE_BUILD_TYPE:STRING=" ${build_type} " \
@@ -110,7 +110,7 @@ for PYBIN in "${PYBINARIES[@]}"; do
110110 -DBUILD_TESTING:BOOL=OFF \
111111 -DPython3_EXECUTABLE:FILEPATH=${Python3_EXECUTABLE} \
112112 -DPython3_INCLUDE_DIR:PATH=${Python3_INCLUDE_DIR} \
113- -DCMAKE_CXX_COMPILER_TARGET:STRING=$( uname -p ) -linux-gnu \
113+ -DCMAKE_CXX_COMPILER_TARGET:STRING=$( uname -m ) -linux-gnu \
114114 -DCMAKE_CXX_FLAGS:STRING=" $compile_flags " \
115115 -DCMAKE_C_FLAGS:STRING=" $compile_flags " \
116116 -DCMAKE_BUILD_TYPE:STRING=" ${build_type} " \
@@ -167,13 +167,13 @@ done
167167
168168if test " ${ARCH} " == " x64" ; then
169169 sudo /opt/python/cp39-cp39/bin/pip3 install auditwheel wheel
170- # This step will fixup the wheel switching from 'linux' to 'manylinux2014 ' tag
171- for whl in dist/itk_* linux_$( uname -p ) .whl; do
172- /opt/python/cp39-cp39/bin/auditwheel repair --plat manylinux2014_x86_64 ${whl} -w /work/dist/
170+ # This step will fixup the wheel switching from 'linux' to 'manylinux<version> ' tag
171+ for whl in dist/itk_* linux_$( uname -m ) .whl; do
172+ /opt/python/cp39-cp39/bin/auditwheel repair --plat manylinux ${MANYLINUX_VERSION} _x86_64 ${whl} -w /work/dist/
173173 rm ${whl}
174174 done
175175else
176- for whl in dist/itk_* $( uname -p ) .whl; do
176+ for whl in dist/itk_* $( uname -m ) .whl; do
177177 auditwheel repair ${whl} -w /work/dist/
178178 rm ${whl}
179179 done
0 commit comments