Skip to content

Commit cfeffd1

Browse files
hjmjohnsonclaude
andcommitted
BUG: Use fixed >= 5.4 floor for ITK deps across all versions
Remote modules must support installation with any ITK from v5.4.0 through the latest release. Use a fixed floor of >= 5.4 rather than pinning to the version being built, so wheels are installable across the full supported range. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fb1583e commit cfeffd1

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

scripts/build_python_instance_base.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -836,15 +836,11 @@ def _update_module_itk_deps(pyproject_path: Path, itk_version: str) -> bool:
836836
f"cross-dep {m.group(0)} — review manually"
837837
)
838838

839-
# Determine the minimum version floor from the ITK version being built.
840-
# Pin to vMAJOR.MINOR of the ITK version so the wheel is only
841-
# installable alongside the ITK series it was compiled against.
842-
# For "6.0.0b2.post757" -> "6.0", for "5.4.0" -> "5.4".
843-
parts = itk_version.split(".")
844-
try:
845-
min_floor = f"{parts[0]}.{parts[1]}"
846-
except IndexError:
847-
min_floor = itk_version
839+
# Remote modules must support installation across the full
840+
# ITK 5.4 → latest range. Use a fixed floor of 5.4 so that a
841+
# wheel built against any ITK version (5.4.x, 6.0.x, etc.) is
842+
# installable with any ITK >= 5.4.
843+
min_floor = "5.4"
848844

849845
changed = False
850846
def _replace(m: re.Match) -> str:

0 commit comments

Comments
 (0)