@@ -38,10 +38,10 @@ for PYBIN in "${PYBINARIES[@]}"; do
3838 # Install dependencies
3939 ${PYBIN} /pip install --upgrade -r /work/requirements-dev.txt
4040
41- build_type=" "
42- compile_flags=" -O2 -DNDEBUG"
41+ build_type=" Release "
42+ compile_flags=" -O3 -DNDEBUG"
4343 source_path=/work/ITK-source/ITK
44- build_path=/work/ITK-$( basename $( dirname ${PYBIN} ) ) -manylinux1_ ${ARCH}
44+ build_path=/work/ITK-$( basename $( dirname ${PYBIN} ) ) -manylinux2014_ ${ARCH}
4545 SETUP_PY_CONFIGURE=" ${script_dir} /../setup_py_configure.py"
4646 SKBUILD_CMAKE_INSTALL_PREFIX=$( ${Python3_EXECUTABLE} -c " from skbuild.constants import CMAKE_INSTALL_DIR; print(CMAKE_INSTALL_DIR)" )
4747
@@ -64,6 +64,7 @@ for PYBIN in "${PYBINARIES[@]}"; do
6464 -DITKPythonPackage_WHEEL_NAME:STRING=" itk" \
6565 -DITK_WRAP_unsigned_short:BOOL=ON \
6666 -DITK_WRAP_double:BOOL=ON \
67+ -DITK_WRAP_IMAGE_DIMS:STRING=" 2;3;4" \
6768 -DCMAKE_CXX_COMPILER_TARGET:STRING=$( uname -p) -linux-gnu \
6869 -DCMAKE_CXX_FLAGS:STRING=" $compile_flags " \
6970 -DCMAKE_C_FLAGS:STRING=" $compile_flags " \
@@ -100,6 +101,7 @@ for PYBIN in "${PYBINARIES[@]}"; do
100101 -DWRAP_ITK_INSTALL_COMPONENT_PER_MODULE:BOOL=ON \
101102 -DITK_WRAP_unsigned_short:BOOL=ON \
102103 -DITK_WRAP_double:BOOL=ON \
104+ -DITK_WRAP_IMAGE_DIMS:STRING=" 2;3;4" \
103105 -DPY_SITE_PACKAGES_PATH:PATH=" ." \
104106 -DITK_LEGACY_SILENT:BOOL=ON \
105107 -DITK_WRAP_PYTHON:BOOL=ON \
@@ -123,6 +125,7 @@ for PYBIN in "${PYBINARIES[@]}"; do
123125 -DITKPythonPackage_WHEEL_NAME:STRING=${wheel_name} \
124126 -DITK_WRAP_unsigned_short:BOOL=ON \
125127 -DITK_WRAP_double:BOOL=ON \
128+ -DITK_WRAP_IMAGE_DIMS:STRING=" 2;3;4" \
126129 -DPython3_EXECUTABLE:FILEPATH=${Python3_EXECUTABLE} \
127130 -DPython3_INCLUDE_DIR:PATH=${Python3_INCLUDE_DIR} \
128131 -DCMAKE_BUILD_TYPE:STRING=" ${build_type} " \
@@ -143,14 +146,15 @@ for PYBIN in "${PYBINARIES[@]}"; do
143146
144147done
145148
146- # auditwheel contains a regression where it will consume the "itk" wheels.
147- /opt/python/cp37-cp37m/bin/pip3 install auditwheel==1.9.0 wheel==0.26.0
149+ /opt/python/cp37-cp37m/bin/pip3 install auditwheel wheel
148150# Since there are no external shared libraries to bundle into the wheels
149- # this step will fixup the wheel switching from 'linux' to 'manylinux1 ' tag
150- for whl in dist/* linux_$( uname -p) .whl; do
151- /opt/python/cp37-cp37m/bin/auditwheel repair ${whl} -w /work/dist/
151+ # this step will fixup the wheel switching from 'linux' to 'manylinux2014 ' tag
152+ for whl in dist/itk_ * linux_$( uname -p) .whl; do
153+ /opt/python/cp37-cp37m/bin/auditwheel repair --plat manylinux2014_x86_64 ${whl} -w /work/dist/
152154 rm ${whl}
153155done
156+ itk_wheel=$( ls dist/itk-* linux* )
157+ mv ${itk_wheel} ${itk_wheel/ linux/ manylinux2014}
154158
155159# Install packages and test
156160for PYBIN in " ${PYBINARIES[@]} " ; do
0 commit comments