Skip to content

Retire the legacy shell and PowerShell entry points #310

Open

Description

@hjmjohnson

The pixi/Python build system (#309) supersedes the shell and PowerShell
entry points, but they cannot be removed yet: remote modules fetch three
of them by URL at a pinned tag, so deleting them breaks those consumers
until each one is updated. #309 marks them "backward compatibility" in
the README; this issue tracks actually retiring them.

Not urgent. Nothing is broken today. This is cleanup to schedule once
the consumer workflows move.

What is left

Ten files, 1,469 lines, in three tiers.

Tier 1 — already dead, no consumer (313 lines)

File Lines Superseded by
scripts/make_tarballs.sh 120 wheel_packaging.py
scripts/make_windows_zip.ps1 157 wheel_packaging.py
docs/make.bat 36 docs/Makefile + a pixi task

Referenced only by each other and the .rst docs. docs/make.bat is the
Sphinx Windows helper and has no caller at all.

Tier 2 — internal plumbing, reachable only through tier 3 (602 lines)

dockcross-manylinux-build-module-wheels.sh (219),
dockcross-manylinux-build-wheels.sh (148),
dockcross-manylinux-download-cache.sh (135),
docker_build_environment_driver.sh (100).

Tier 3 — the published API (554 lines)

File Lines
dockcross-manylinux-download-cache-and-build-module-wheels.sh 134
macpython-download-cache-and-build-module-wheels.sh 174
windows-download-cache-and-build-module-wheels.ps1 246

These are fetched from raw.githubusercontent.com at a pinned tag.
Removing them is the compatibility break.

Why the break is smaller than it looks

Remote modules do not curl these directly. They call the reusable
workflow in
ITKRemoteModuleBuildTestPackageAction,
and the curl happens there. So the lockstep change is one file in one
repository
, and modules tracking @main pick it up on their next run.
Modules pinned to an older tag keep fetching the old scripts from that
tag, which still resolves.

Suggested order

  1. Update the reusable workflow to call build_wheels.py directly.
  2. Confirm a real remote module builds on all four platforms through the
    updated workflow.
  3. Delete tier 3, then tier 2 (unreachable once tier 3 is gone).
  4. Delete tier 1 independently; nothing depends on it.

Tier 1 could be done at any time, including before the rest.

Related

Activity

  1. hjmjohnson commented on Nov 25, 2026

    @hjmjohnson
    MemberAuthor

    Correction to tier 2: dockcross-manylinux-build-wheels.sh and
    docker_build_environment_driver.sh launch every Linux ITK wheel build at
    main, so they stay. Only dockcross-manylinux-build-module-wheels.sh and
    dockcross-manylinux-download-cache.sh are reachable solely through tier 3,
    and dockcross-manylinux-set-vars.sh must also survive the cleanup.
    Tier 1 is in #316.

    Callers at d1e7d0d
    • scripts/release_wheels.py plan() runs
      bash scripts/dockcross-manylinux-build-wheels.sh py311 for each
      manylinux target (pixi run release-wheels), and
      tests/test_release_wheels.py asserts it.
    • scripts/build_wheels.py refuses a manylinux build outside the container
      and tells the user to start it with dockcross-manylinux-build-wheels.sh.
    • dockcross-manylinux-build-wheels.sh runs
      docker_build_environment_driver.sh inside the container, as does
      dockcross-manylinux-build-module-wheels.sh.
    • dockcross-manylinux-build-module-wheels.sh and
      dockcross-manylinux-download-cache.sh are called only by
      dockcross-manylinux-download-cache-and-build-module-wheels.sh (tier 3),
      plus their own unit tests (tests/test_module_script_docker_args.py,
      tests/test_download_cache_archive.py,
      tests/test_build_jobs_link_pool.py), which go with them.
    dockcross-manylinux-set-vars.sh is a published API too

    ITKRemoteModuleBuildTestPackageAction's
    .github/workflows/build-test-package-python.yml fetches
    scripts/dockcross-manylinux-set-vars.sh by raw URL at
    inputs.itk-python-package-tag (default v6.0b02) in both Linux jobs, to
    pre-pull the image. Nothing in this repository references it, so a
    "no callers" search would flag it as dead. It is not in any tier above and
    must stay until that workflow stops fetching it.

    Revised tier 2
    File Lines
    dockcross-manylinux-build-module-wheels.sh 229
    dockcross-manylinux-download-cache.sh 157

    Delete with tier 3, together with the tests named above.

  2. added 2 commits that reference this issue on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions