Skip to content

Commit 8ba6332

Browse files
authored
Merge pull request InsightSoftwareConsortium#300 from thewtex/drop-python-3.9
COMP: Drop Python 3.9 support
2 parents 04ee7c4 + 229d37e commit 8ba6332

19 files changed

Lines changed: 456 additions & 260 deletions

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ documentation for more information on building wheels by hand.
8383
### What target platforms and architectures are supported?
8484

8585
ITKPythonPackage currently supports building wheels for the following platforms and architectures:
86-
- Windows 10 x86_64 platforms
87-
- Windows 11 x86_64 platforms
88-
- MacOS 15.0+ arm64 platforms
89-
- Linux glibc 2.17+ (E.g. Ubuntu 18.04+) x86_64 platforms
90-
- Linux glibc 2.28+ (E.g. Ubuntu 20.04+) aarch64 (ARMv8) platforms
86+
- Windows 10 x86_64 platforms
87+
- Windows 11 x86_64 platforms
88+
- MacOS 15.0+ arm64 platforms
89+
- Linux glibc 2.17+ (E.g. Ubuntu 18.04+) x86_64 platforms
90+
- Linux glibc 2.28+ (E.g. Ubuntu 20.04+) aarch64 (ARMv8) platforms
91+
92+
Python 3.10+ is required.
9193

9294
### What should I do if my target platform/architecture does not appear on the list above?
9395

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Versions can be restricted by passing them in as arguments to the script
1111
# For example,
1212
#
13-
# scripts/dockcross-manylinux-build-module-wheels.sh cp39
13+
# scripts/dockcross-manylinux-build-module-wheels.sh cp310
1414
#
1515
# ===========================================
1616
# ENVIRONMENT VARIABLES
@@ -19,7 +19,7 @@
1919
# For example,
2020
#
2121
# export MANYLINUX_VERSION="_2_28"
22-
# scripts/dockcross-manylinux-build-module-wheels.sh cp39
22+
# scripts/dockcross-manylinux-build-module-wheels.sh cp310
2323
#
2424
# `LD_LIBRARY_PATH`: Shared libraries to be included in the resulting wheel.
2525
# For instance, `export LD_LIBRARY_PATH="/path/to/OpenCL.so:/path/to/OpenCL.so.1.2"`

scripts/dockcross-manylinux-build-wheels.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Versions can be restricted by passing them in as arguments to the script
66
# For example,
77
#
8-
# scripts/dockcross-manylinux-build-wheels.sh cp39
8+
# scripts/dockcross-manylinux-build-wheels.sh cp310
99
#
1010
# A specialized manylinux image and tag can be used by exporting to
1111
# MANYLINUX_VERSION and IMAGE_TAG before running this script.
@@ -15,7 +15,7 @@
1515
#
1616
# export MANYLINUX_VERSION=2014
1717
# export IMAGE_TAG=20221205-459c9f0
18-
# scripts/dockcross-manylinux-build-module-wheels.sh cp39
18+
# scripts/dockcross-manylinux-build-module-wheels.sh cp310
1919
#
2020
script_dir=$(cd $(dirname $0) || exit 1; pwd)
2121
source "${script_dir}/oci_exe.sh"

scripts/dockcross-manylinux-download-cache-and-build-module-wheels.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Versions can be restricted by passing them in as arguments to the script
1111
# For example,
1212
#
13-
# scripts/dockcross-manylinux-build-module-wheels.sh cp39
13+
# scripts/dockcross-manylinux-build-module-wheels.sh cp310
1414
#
1515
# ===========================================
1616
# ENVIRONMENT VARIABLES
@@ -19,7 +19,7 @@
1919
# For example,
2020
#
2121
# export ITK_PACKAGE_VERSION="v5.4.0"
22-
# scripts/dockcross-manylinux-build-module-wheels.sh cp39
22+
# scripts/dockcross-manylinux-build-module-wheels.sh cp310
2323
#
2424
# `ITKPYTHONPACKAGE_ORG`: Github organization for fetching ITKPythonPackage build scripts.
2525
#
@@ -39,7 +39,7 @@ usage()
3939
[ -h | --help ] show usage
4040
[ -c | --cmake_options ] space-delimited string containing CMake options to forward to the module (e.g. \"-DBUILD_TESTING=OFF\")
4141
[ -x | --exclude_libs ] semicolon-delimited library names to exclude when repairing wheel (e.g. \"libcuda.so\")
42-
[ python_version ] build wheel for a specific python version. (e.g. cp39)"
42+
[ python_version ] build wheel for a specific python version. (e.g. cp310)"
4343
exit 2
4444
}
4545

scripts/dockcross-manylinux-download-cache.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ usage()
3939
echo "Usage:
4040
dockcross-manylinux-download-cache.sh
4141
[ -h | --help ] show usage
42-
[ python_version ] build wheel for a specific python version. (e.g. cp39)"
42+
[ python_version ] build wheel for a specific python version. (e.g. cp310)"
4343
exit 2
4444
}
4545

scripts/dockcross-manylinux-set-vars.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# For example,
1111
#
1212
# export ITK_PACKAGE_VERSION=v5.4.0
13-
# scripts/dockcross-manylinux-set-vars.sh cp39
13+
# scripts/dockcross-manylinux-set-vars.sh cp310
1414
#
1515
########################################################################
1616

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dnf upgrade -y almalinux-release
77
# Newer Python.cmake module required for SABI
88
pipx upgrade cmake
99
yum -y install sudo ninja-build
10-
/opt/python/cp39-cp39/bin/python -m pip install -r /ITKPythonPackage/requirements-dev.txt
10+
/opt/python/cp310-cp310/bin/python -m pip install -r /ITKPythonPackage/requirements-dev.txt
1111
for PYBIN in "${PYBINARIES[@]}"; do
1212
${PYBIN}/pip install -r /ITKPythonPackage/requirements-dev.txt
1313
done

scripts/internal/manylinux-build-common.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ script_dir=$(cd $(dirname $0) || exit 1; pwd)
77

88
# Versions can be restricted by passing them in as arguments to the script
99
# For example,
10-
# manylinux-build-wheels.sh cp39
10+
# manylinux-build-wheels.sh cp310
1111
if [[ $# -eq 0 ]]; then
1212
PYBIN=(/opt/python/*/bin)
1313
PYBINARIES=()
1414
for version in "${PYBIN[@]}"; do
15-
if [[ ${version} == *"cp39"* || ${version} == *"cp310"* || ${version} == *"cp311"* ]]; then
15+
if [[ ${version} == *"cp310"* || ${version} == *"cp311"* ]]; then
1616
PYBINARIES+=(${version})
1717
fi
1818
done

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Versions can be restricted by passing them in as arguments to the script.
66
# For example,
77
#
8-
# /tmp/dockcross-manylinux-x64 manylinux-build-module-wheels.sh cp39
8+
# /tmp/dockcross-manylinux-x64 manylinux-build-module-wheels.sh cp310
99
#
1010
# Shared library dependencies can be included in the wheel by mounting them to /usr/lib64 or /usr/local/lib64
1111
# before running this script.
@@ -23,7 +23,7 @@
2323
# export MANYLINUX_VERSION=2014
2424
# docker run --rm dockcross/manylinux${MANYLINUX_VERSION}-x64:${IMAGE_TAG} > /tmp/dockcross-manylinux-x64
2525
# chmod u+x /tmp/dockcross-manylinux-x64
26-
# /tmp/dockcross-manylinux-x64 -e MANYLINUX_VERSION manylinux-build-module-wheels.sh cp39
26+
# /tmp/dockcross-manylinux-x64 -e MANYLINUX_VERSION manylinux-build-module-wheels.sh cp310
2727
#
2828

2929
# -----------------------------------------------------------------------
@@ -36,7 +36,7 @@ usage()
3636
[ -h | --help ] show usage
3737
[ -c | --cmake_options ] space-separated string of CMake options to forward to the module (e.g. \"--config-setting=cmake.define.BUILD_TESTING=OFF\")
3838
[ -x | --exclude_libs ] semicolon-separated library names to exclude when repairing wheel (e.g. \"libcuda.so\")
39-
[ python_version ] build wheel for a specific python version. (e.g. cp39)"
39+
[ python_version ] build wheel for a specific python version. (e.g. cp310)"
4040
exit 2
4141
}
4242

scripts/internal/manylinux-build-wheels.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Versions can be restricted by passing them in as arguments to the script.
66
# For example,
77
#
8-
# /tmp/dockcross-manylinux-x64 manylinux-build-wheels.sh cp39
8+
# /tmp/dockcross-manylinux-x64 manylinux-build-wheels.sh cp310
99
#
1010
# Shared library dependencies can be included wheels by mounting them to /usr/lib64 or /usr/local/lib64
1111
# before running this script.
@@ -23,7 +23,7 @@
2323
# export MANYLINUX_VERSION=2014
2424
# docker run --rm dockcross/manylinux${MANYLINUX_VERSION}-x64:${IMAGE_TAG} > /tmp/dockcross-manylinux-x64
2525
# chmod u+x /tmp/dockcross-manylinux-x64
26-
# /tmp/dockcross-manylinux-x64 -e MANYLINUX_VERSION manylinux-build-module-wheels.sh cp39
26+
# /tmp/dockcross-manylinux-x64 -e MANYLINUX_VERSION manylinux-build-module-wheels.sh cp310
2727
#
2828

2929
# -----------------------------------------------------------------------

0 commit comments

Comments
 (0)