Skip to content

Commit f25b926

Browse files
committed
Merge branch 'release' into itk-6.0-b1
2 parents 64fda29 + bf21741 commit f25b926

14 files changed

+76
-34
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ if(ITKPythonPackage_SUPERBUILD)
9494

9595
set(ITK_REPOSITORY "https://github.com/InsightSoftwareConsortium/ITK.git")
9696

97-
# main branch, 2025-07-16
98-
set(ITK_GIT_TAG "ff4ff13ec295595cab2edbb3173a39ef798e4c7d")
97+
# release-5.4 branch, 2025-06-23
98+
set(ITK_GIT_TAG "46f39a0ea702247628036fc3cffdb009caa463cf")
9999

100100
#-----------------------------------------------------------------------------
101101
# A separate project is used to download ITK, so that it can reused

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ninja==1.11.1.1
2-
scikit-build-core==0.9.5
2+
scikit-build-core==0.10.7
33
build==1.2.1
44
pyproject-metadata
55
pathspec

scripts/dockcross-manylinux-build-module-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ for MODULE_INFO in ${ITK_MODULE_PREQ_TOPLEVEL//:/ }; do
7474

7575
echo "Cleaning up module dependency"
7676
cp ./${MODULE_NAME}/include/* include/
77-
find ${MODULE_NAME}/_skbuild -type f -wholename "**/cmake-build/include/*" -print -exec cp {} include \;
77+
find ${MODULE_NAME}/*build/*/include -type f -print -exec cp {} include \;
7878

7979
# Cache build archive
8080
if [[ `(compgen -G ./ITKPythonBuilds-linux*.tar.zst)` ]]; then

scripts/dockcross-manylinux-build-tarball.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,9 @@
44
# downloaded by the external module build scripts and used to build their
55
# Python package on GitHub CI services.
66

7-
if test -d /home/kitware/Packaging; then
8-
cd /home/kitware/Packaging
9-
fi
10-
117
# -----------------------------------------------------------------------
128

139
zstd_exe=`(which zstd)`
14-
if [[ -z ${zstd_exe} && -e /home/kitware/Support/zstd-build/programs/zstd ]]; then
15-
zstd_exe=/home/kitware/Support/zstd-build/programs/zstd
16-
fi
1710

1811
# Find an appropriately versioned zstd.
1912
#
@@ -38,11 +31,11 @@ fi
3831

3932
# -----------------------------------------------------------------------
4033

41-
tar -c --to-stdout \
34+
tar -cf ITKPythonBuilds-linux.tar \
4235
ITKPythonPackage/ITK-* \
4336
ITKPythonPackage/oneTBB* \
4437
ITKPythonPackage/requirements-dev.txt \
45-
ITKPythonPackage/scripts > ITKPythonBuilds-linux.tar
38+
ITKPythonPackage/scripts
4639
$zstd_exe -f \
4740
-10 \
4841
-T6 \

scripts/dockcross-manylinux-cleanup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fi
3131
unlink oneTBB-prefix
3232
${rm_prefix} rm -rf ITKPythonPackage/
3333
${rm_prefix} rm -rf tools/
34-
${rm_prefix} rm -rf _skbuild/
34+
${rm_prefix} rm -rf _skbuild/ build/
3535
${rm_prefix} rm -rf ./*.egg-info/
3636
${rm_prefix} rm -rf ./ITK-*-manylinux${MANYLINUX_VERSION}_${TARGET_ARCH}/
3737
${rm_prefix} rm -rf ./ITKPythonBuilds-linux-manylinux*${MANYLINUX_VERSION}*.tar.zst

scripts/internal/manylinux-build-common.sh

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,6 @@ done
167167

168168
if compgen -G "dist/itk*-linux*.whl" > /dev/null; then
169169
for itk_wheel in dist/itk*-linux*.whl; do
170-
mv ${itk_wheel} ${itk_wheel/linux/manylinux${MANYLINUX_VERSION}}
170+
rm ${itk_wheel}
171171
done
172172
fi

scripts/internal/manylinux-build-wheels.sh

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,18 +172,35 @@ for PYBIN in "${PYBINARIES[@]}"; do
172172

173173
done
174174

175+
sudo /opt/python/cp311-cp311/bin/pip3 install auditwheel wheel
176+
175177
if test "${ARCH}" == "x64"; then
176-
sudo /opt/python/cp39-cp39/bin/pip3 install auditwheel wheel
177178
# This step will fixup the wheel switching from 'linux' to 'manylinux<version>' tag
178179
for whl in dist/itk_*linux_*.whl; do
179-
/opt/python/cp39-cp39/bin/auditwheel repair --plat manylinux${MANYLINUX_VERSION}_x86_64 ${whl} -w /work/dist/
180+
/opt/python/cp311-cp311/bin/auditwheel repair --plat manylinux${MANYLINUX_VERSION}_x86_64 ${whl} -w /work/dist/
180181
done
181182
else
182183
for whl in dist/itk_*$(uname -m).whl; do
183-
auditwheel repair ${whl} -w /work/dist/
184+
/opt/python/cp311-cp311/bin/auditwheel repair ${whl} -w /work/dist/
184185
done
185186
fi
186187

188+
# auditwheel does not process this "metawheel" correctly since it does not
189+
# have any native SO's.
190+
mkdir -p metawheel-dist
191+
for whl in dist/itk-*linux_*.whl; do
192+
/opt/python/cp311-cp311/bin/wheel unpack --dest metawheel ${whl}
193+
manylinux_version=manylinux${MANYLINUX_VERSION}
194+
new_tag=$(basename ${whl/linux/${manylinux_version}} .whl)
195+
sed -i "s/Tag: .*/Tag: ${new_tag}/" metawheel/itk-*/itk*.dist-info/WHEEL
196+
/opt/python/cp311-cp311/bin/wheel pack --dest metawheel-dist metawheel/itk-*
197+
mv metawheel-dist/*.whl dist/${new_tag}.whl
198+
rm -rf metawheel
199+
done
200+
rm -rf metawheel-dist
201+
rm dist/itk-*-linux_*.whl
202+
rm dist/itk_*-linux_*.whl
203+
187204
# Install packages and test
188205
for PYBIN in "${PYBINARIES[@]}"; do
189206
${PYBIN}/pip install --user numpy

scripts/internal/windows_build_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import shutil
66

7-
DEFAULT_PY_ENVS = ["38-x64", "39-x64", "310-x64", "311-x64"]
7+
DEFAULT_PY_ENVS = ["39-x64", "310-x64", "311-x64"]
88

99
SCRIPT_DIR = os.path.dirname(__file__)
1010
ROOT_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, "..", ".."))

scripts/macpython-build-module-wheels.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ fi
7171

7272
VENV="${VENVS[0]}"
7373
Python3_EXECUTABLE=${VENV}/bin/python3
74+
dot_clean ${VENV}
7475
${Python3_EXECUTABLE} -m pip install --no-cache delocate
7576
DELOCATE_LISTDEPS=${VENV}/bin/delocate-listdeps
7677
DELOCATE_WHEEL=${VENV}/bin/delocate-wheel

0 commit comments

Comments
 (0)