From 3c7145d69f59d509f816ae4a02f83d5ab480b77f Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Tue, 21 Jul 2026 13:28:07 -0500 Subject: [PATCH] DOC: Document ITK 6 minimum wrapped Python is 3.11 Add a migration-guide entry noting the wrapped-Python floor was raised from 3.10 to 3.11; configuring wrapping against an older interpreter now fails early (ITK_WRAP_PYTHON_MINIMUM_VERSION in CMake/ITKSetPython3Vars.cmake). --- .../docs/migration_guides/itk_6_migration_guide.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/docs/migration_guides/itk_6_migration_guide.md b/Documentation/docs/migration_guides/itk_6_migration_guide.md index 0205b343109..feebaac7a6e 100644 --- a/Documentation/docs/migration_guides/itk_6_migration_guide.md +++ b/Documentation/docs/migration_guides/itk_6_migration_guide.md @@ -640,6 +640,14 @@ target_link_libraries(MyExample ITK::MyModuleModule) For backward compatibility, non-namespaced aliases are created with deprecation warnings. However, new code should use the namespaced `ITK::` targets exclusively. +## Minimum wrapped Python raised to 3.11 + +ITK 6 requires Python 3.11 or newer for Python wrapping; the previous floor was 3.10. Configuring the wrapping against an older interpreter now fails early. + +### What you need to do + +Use Python 3.11+ when building or installing the ITK Python wrapping. The prebuilt `itk` wheels already target 3.11 and newer. + ## NumPy bridge: `image_from_array(arr.T)` is no longer transpose-equivalent to `image_from_array(arr)` ### Rationale