Skip to content

Commit 7fdcc06

Browse files
authored
Merge pull request #316 from BRAINSia/retire-tier1
COMP: Remove make_tarballs.sh and make_windows_zip.ps1 (#310 tier 1)
2 parents dd66b57 + 403bab2 commit 7fdcc06

5 files changed

Lines changed: 27 additions & 315 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ docs/_build
8383
.pixi/*
8484
!.pixi/config.toml
8585

86-
# pixi installer that the Windows entry-point scripts fetch into the
87-
# working directory (make_windows_zip.ps1,
88-
# windows-download-cache-and-build-module-wheels.ps1)
86+
# pixi installer that windows-download-cache-and-build-module-wheels.ps1
87+
# fetches into the working directory
8988
install-pixi.ps1

‎README.md‎

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -386,19 +386,17 @@ To see how to build ITK Python Build Caches, see this section:
386386

387387
#### GitHub Compatible Caches
388388

389-
To build the caches compatible with GitHub Actions CI and the ITKPythonBuilds repository. You can run:
390-
391-
On Linux and macOS systems
389+
`release-wheels` builds the caches compatible with GitHub Actions CI and the
390+
ITKPythonBuilds repository alongside the wheels: it passes
391+
`--build-itk-tarball-cache` to `build_wheels.py` for every target.
392392

393393
```bash
394-
bash scripts/make_tarballs.sh # py311 (optionally add specific version of Python)
394+
pixi run release-wheels v6.0b03
395395
```
396396

397-
On Windows systems
398-
399-
```powershell
400-
.\scripts\make_windows_zip.ps1 # py311 (optionally add specific version of Python)
401-
```
397+
POSIX builds write `dist/ITKPythonBuilds-<platform>-<arch>.tar.zst` under the
398+
build root (`scripts/wheel_packaging.py`); Windows writes
399+
`ITKPythonBuilds-windows.zip` in the build root.
402400

403401
> [!IMPORTANT]
404402
> Build caches embed absolute paths. If you extract a tarball to a different
@@ -410,11 +408,14 @@ On Windows systems
410408
> | macOS | `/Users/svc-dashboard/D/P/ITKPythonPackage-build` |
411409
> | Windows | `C:\BDR` |
412410
>
413-
> The scripts above set these for you. **`build_wheels.py` does not**: its
414-
> default build root is `<repo>/../ITKPythonPackage-build`, which matches the
415-
> convention only on Windows. A cache built by calling `build_wheels.py`
416-
> directly therefore needs `--build-dir-root` set to the path in the table, or
417-
> it will not be usable by the reusable workflow. Check a finished cache with:
411+
> `release-wheels` uses the manylinux and Windows paths by default. On macOS
412+
> its build root is `<repo>/../ITKPythonPackage-build`, so clone the
413+
> repository at `/Users/svc-dashboard/D/P/ITKPythonPackage` or pass
414+
> `--build-root /Users/svc-dashboard/D/P/ITKPythonPackage-build`.
415+
> `build_wheels.py` called directly defaults to `C:\BDR` on Windows and to
416+
> `<repo>/../ITKPythonPackage-build` elsewhere, so a macOS cache built that way
417+
> needs `--build-dir-root` set to the path in the table, or it will not be
418+
> usable by the reusable workflow. Check a finished cache with:
418419
>
419420
> ```bash
420421
> tar -xOf <cache>.tar ITKPythonPackage-build/build/ITK-support-bld/CMakeCache.txt \

‎docs/Build_ITK_Python_packages.rst‎

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -297,21 +297,16 @@ artifacts) so that external module builds can skip the costly ITK compilation st
297297
These are the same caches distributed via `ITKPythonBuilds
298298
<https://github.com/InsightSoftwareConsortium/ITKPythonBuilds>`_ releases.
299299

300-
By default these scripts build for Python 3.11 but you can optionally add a specific version to build for
301-
302-
Linux / macOS:
300+
``release-wheels`` builds a cache for every target it builds, by passing
301+
``--build-itk-tarball-cache`` to ``build_wheels.py``:
303302

304303
.. code-block:: bash
305304
306-
ITK_GIT_TAG=v6.0b01
307-
bash scripts/make_tarballs.sh py311
308-
309-
Windows (PowerShell):
310-
311-
.. code-block:: powershell
305+
pixi run release-wheels v6.0b01
312306
313-
$env:ITK_GIT_TAG = "v6.0b01"
314-
.\scripts\make_windows_zip.ps1 py311
307+
POSIX builds write ``dist/ITKPythonBuilds-<platform>-<arch>.tar.zst`` under the
308+
build root (``scripts/wheel_packaging.py``); Windows writes
309+
``ITKPythonBuilds-windows.zip`` in the build root.
315310

316311
Or via ``build_wheels.py`` directly:
317312

@@ -331,8 +326,10 @@ Or via ``build_wheels.py`` directly:
331326
- **macOS**: ``/Users/svc-dashboard/D/P/ITKPythonPackage-build``
332327
- **Windows**: ``C:\BDR``
333328

334-
The ``make_tarballs.sh`` and ``make_windows_zip.ps1`` scripts enforce these
335-
paths automatically.
329+
``release-wheels`` uses the manylinux and Windows paths by default. On
330+
macOS, clone the repository at ``/Users/svc-dashboard/D/P/ITKPythonPackage``
331+
or pass ``--build-root /Users/svc-dashboard/D/P/ITKPythonPackage-build``
332+
(``--build-dir-root`` for ``build_wheels.py``).
336333

337334

338335
Output Artifacts

‎scripts/make_tarballs.sh‎

Lines changed: 0 additions & 111 deletions
This file was deleted.

‎scripts/make_windows_zip.ps1‎

Lines changed: 0 additions & 174 deletions
This file was deleted.

0 commit comments

Comments
 (0)