Skip to content

Commit 919cde4

Browse files
committed
COMP: Derive the abi3 floor from the Python wrapping floor
Two independent 3.11 literals could drift apart even though abi3-only wrapping makes them necessarily equal.
1 parent 96f5088 commit 919cde4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

CMake/ITKSetPython3Vars.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,12 @@ else()
9393
)
9494
endif()
9595

96-
# Cached so the abi3 floor is a single source of truth shared with the module
97-
# wrapping macros (itk_end_wrap_module.cmake USE_SABI).
96+
# Wrapping requires this version and every module is abi3, so the wrapping
97+
# floor and the Limited API floor are the same number. Cached so
98+
# itk_end_wrap_module.cmake can pin USE_SABI to it.
9899
set(
99100
_ITK_MINIMUM_SUPPORTED_LIMITED_API_VERSION
100-
3.11
101+
${ITK_WRAP_PYTHON_MINIMUM_VERSION}
101102
CACHE INTERNAL
102103
"Minimum Python minor version for the abi3 / Limited API floor"
103104
)

0 commit comments

Comments
 (0)