You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Relocate Python LIMITED_API logic for modularity
o Python configuration should be done in ITKSetPytnon3Vars.cmake.
It was previously spread around in different parts of the ITK
package which made tracking of behaviors difficult to monitor.
- Simplify logic for ITK_USE_PYTHON_LIMITED_API
o Avoid using a temporary variable use_python_limited_api_default to
set the value of ITK_USE_PYTHON_LIMITED_API.
o Prefer to set ITK_USE_PYTHON_LIMITED_API directly.
o Moved Python LIMITED_API and package component logic to
`ITKSetPython3Vars.cmake` for improved organization and maintainability.
- Ensure single call to find_package( Python3 ) is used to simplify
the logic and testing. Manually identify required Python3 COMPONENTS
and give more descriptive error messages to help with tracking down
the failing condition. This is particularly helpful when multiple
versions of Python are installed (i.e. python3.13 from homebrew,
python3.13 from pixi, python3.13 in standard OS install, etc).
- Refactored Python LIMITED_API setup for improved modularity and reusability.
- Adjusted `itk_end_wrap_module.cmake` to properly handle LIMITED_API settings.
- Updated `ITKSetPython3Vars.cmake` to streamline Python version selection and configuration.
- Improved maintainability by centralizing Python-related configuration and ensuring consistency across CMake files.
- Fix linking of ITKCommon when including python support
- Added a check in `ITKSetPython3Vars.cmake` to ensure CMake version is >= 3.26 when `ITK_USE_PYTHON_LIMITED_API` is enabled.
- Provides clear error messaging to guide users to update CMake or disable the limited API configuration.
- Updated `ITKSetPython3Vars.cmake` to append `Python3_FIND_ABI` values only for Linux (non-Apple, non-MSVC) systems.
- Unset `Python3_FIND_ABI` for non-Linux platforms to prevent configuration issues.
- Updated `ITKSetPython3Vars.cmake` to restrict `PYTHON_VERSION_MIN` and `PYTHON_VERSION_MAX` to the version of the specified `Python3_EXECUTABLE`.
- Ensures compatibility and proper handling of Python LIMITED_API in wrapping process.
0 commit comments