Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,12 @@ not a real flag; do not invent one.

**Platform options**

| Argument | Meaning |
| -------------------------------- | ----------------------------------------------- |
| `--macosx-deployment-target VER` | macOS floor and wheel tag |
| `--manylinux-version VER` | `_2_28`, `_2_34`; empty builds native Linux |
| `--lib-paths DIRS` | Windows only; `;`-delimited dirs for delvewheel |
| `--exclude-libs DLLS` | Windows only; `;`-delimited DLLs not to bundle |
| Argument | Meaning |
| -------------------------------- | ------------------------------------------------ |
| `--macosx-deployment-target VER` | macOS floor and wheel tag |
| `--manylinux-version VER` | `_2_28`; empty builds native Linux |
| `--lib-paths DIRS` | Windows only; `;`-delimited dirs for delvewheel |
| `--exclude-libs LIBS` | Windows, Linux; `;`-delimited libs not to bundle |

**Remote modules**

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Key options:
| `--use-compiler-cache` | sccache on Windows, ccache elsewhere (`--use-ccache`) | (flag) |
| `--no-dead-strip` | Linux, macOS: keep unreferenced code (default: strip) | (flag) |
| `--lib-paths` | Windows only: `;`-delimited dirs for delvewheel | `C:\deps\bin` |
| `--exclude-libs` | Windows only: `;`-delimited DLLs delvewheel must skip | `nvcuda.dll` |
| `--exclude-libs` | Windows, Linux: `;`-delimited libraries not to bundle | `nvcuda.dll`, `libcuda.so.1` |
| `--no-build-itk-tarball-cache` | Skip tarball generation (default) | (flag) |
| `--no-skip-itk-build` | Don't skip ITK build step (default | (flag) |
| `--no-skip-itk-wheel-build` | Don't skip the ITK wheel build step (default) | (flag) |
Expand Down Expand Up @@ -353,7 +353,7 @@ Key environment variables:
| `ITK_SOURCE_DIR` | `<build-root>/ITKPythonPackage-build/ITK` | Path to local ITK source (skips git clone) |
| `ITK_PACKAGE_VERSION` | derived from git | PEP 440 version of the wheels |
| `TARGET_ARCH` | host architecture | `x64` or `aarch64` |
| `MANYLINUX_VERSION` | `_2_28` | Manylinux standard to target |
| `MANYLINUX_VERSION` | `_2_28` | Manylinux standard to target; only `_2_28` is built |
| `IMAGE_TAG` | `20260203-3dfb3ff` (dockcross) or `2025.08.12-1` (quay manylinux) | Container image tag; the default depends on `CONTAINER_SOURCE` |
| `CONTAINER_DNS` | unset (container runtime default) | DNS servers for the build container, space- or comma-separated; this script only |
| `USE_COMPILER_CACHE` | `0` (`USE_CCACHE` also accepted) | Compile through ccache in the container |
Expand Down
14 changes: 10 additions & 4 deletions docs/Build_ITK_Module_Python_packages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Key environment variables:
- Root directory for build artifacts
* - ``MANYLINUX_VERSION``
- ``_2_28``
- Manylinux compatibility standard
- Manylinux compatibility standard; the script accepts only ``_2_28``
* - ``CMAKE_OPTIONS``
- *(empty)*
- Extra CMake ``-D`` definitions
Expand Down Expand Up @@ -246,18 +246,24 @@ the build script::

export LD_LIBRARY_PATH=/path/to/mylib/lib:$LD_LIBRARY_PATH

A library the wheel must not bundle, such as the CUDA driver, is named with
``-x`` (``--exclude_libs``); separate several names with ``;``::

./dockcross-manylinux-download-cache-and-build-module-wheels.sh -x "libcuda.so.1" cp311

**macOS**: add the directory to ``DYLD_LIBRARY_PATH``::

export DYLD_LIBRARY_PATH=/path/to/mylib/lib:$DYLD_LIBRARY_PATH

**Windows**: pass the library directory via ``--lib-paths`` (or the
``-setup_options`` parameter of the PowerShell script):
``-setup_options`` parameter of the PowerShell script), and name a DLL the
wheel must not bundle with ``--exclude-libs``:

.. code-block:: powershell

.\windows-download-cache-and-build-module-wheels.ps1 `
-python_version_minor 10 `
-setup_options "--exclude-libs nvcuda.dll"
-python_version_minor 11 `
-setup_options "--lib-paths C:\CUDA\bin --exclude-libs nvcuda.dll"


Output
Expand Down
2 changes: 1 addition & 1 deletion docs/Build_ITK_Python_packages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Key Options
- Root directory for all build artifacts
* - ``--manylinux-version``
- ``$MANYLINUX_VERSION``, else empty
- Manylinux compatibility standard (e.g. ``_2_28``, ``_2_34``); empty
- Manylinux compatibility standard; only ``_2_28`` is built. Empty
builds native Linux, and a ``manylinux228-*`` platform env implies
``_2_28``
* - ``--itk-source-dir``
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ ITK_GIT_TAG=${ITK_GIT_TAG:=${ITK_PACKAGE_VERSION}}
# Set default values
MANYLINUX_VERSION=${MANYLINUX_VERSION:-_2_28}
TARGET_ARCH=${TARGET_ARCH:-x64}
# ITKPythonBuilds has caches for manylinux_2_28 only; manylinux2014 is no longer built.
# ITKPythonBuilds publishes caches for manylinux_2_28 only.
if [ "${MANYLINUX_VERSION}" != "_2_28" ]; then
echo "ERROR: MANYLINUX_VERSION=${MANYLINUX_VERSION} is not built; module wheels are manylinux_2_28 only."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion tests/test_build_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def second() -> object:
def test_a_module_build_keeps_its_own_step_report(
linux_builder: LinuxBuildPythonInstance,
) -> None:
"""A module's inputs differ from ITK's, so a shared report reran every step."""
"""A module's inputs differ from ITK's, so each needs its own report."""
builder = _configure(linux_builder)
builder.dist_dir = Path("dist")
assert builder.build_report_path().name == "build_log_manylinux228-py311.json"
Expand Down
Loading