Skip to content

Commit 0ba6a6e

Browse files
authored
Merge pull request #318 from BRAINSia/followup-docs
DOC: Bring the docs in line with #315 (--exclude-libs on Linux, manylinux_2_28 only)
2 parents f297140 + 0e32938 commit 0ba6a6e

6 files changed

Lines changed: 21 additions & 15 deletions

‎AGENTS.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,12 @@ not a real flag; do not invent one.
298298

299299
**Platform options**
300300

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

308308
**Remote modules**
309309

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Key options:
202202
| `--use-compiler-cache` | sccache on Windows, ccache elsewhere (`--use-ccache`) | (flag) |
203203
| `--no-dead-strip` | Linux, macOS: keep unreferenced code (default: strip) | (flag) |
204204
| `--lib-paths` | Windows only: `;`-delimited dirs for delvewheel | `C:\deps\bin` |
205-
| `--exclude-libs` | Windows only: `;`-delimited DLLs delvewheel must skip | `nvcuda.dll` |
205+
| `--exclude-libs` | Windows, Linux: `;`-delimited libraries not to bundle | `nvcuda.dll`, `libcuda.so.1` |
206206
| `--no-build-itk-tarball-cache` | Skip tarball generation (default) | (flag) |
207207
| `--no-skip-itk-build` | Don't skip ITK build step (default | (flag) |
208208
| `--no-skip-itk-wheel-build` | Don't skip the ITK wheel build step (default) | (flag) |
@@ -353,7 +353,7 @@ Key environment variables:
353353
| `ITK_SOURCE_DIR` | `<build-root>/ITKPythonPackage-build/ITK` | Path to local ITK source (skips git clone) |
354354
| `ITK_PACKAGE_VERSION` | derived from git | PEP 440 version of the wheels |
355355
| `TARGET_ARCH` | host architecture | `x64` or `aarch64` |
356-
| `MANYLINUX_VERSION` | `_2_28` | Manylinux standard to target |
356+
| `MANYLINUX_VERSION` | `_2_28` | Manylinux standard to target; only `_2_28` is built |
357357
| `IMAGE_TAG` | `20260203-3dfb3ff` (dockcross) or `2025.08.12-1` (quay manylinux) | Container image tag; the default depends on `CONTAINER_SOURCE` |
358358
| `CONTAINER_DNS` | unset (container runtime default) | DNS servers for the build container, space- or comma-separated; this script only |
359359
| `USE_COMPILER_CACHE` | `0` (`USE_CCACHE` also accepted) | Compile through ccache in the container |

‎docs/Build_ITK_Module_Python_packages.rst‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Key environment variables:
163163
- Root directory for build artifacts
164164
* - ``MANYLINUX_VERSION``
165165
- ``_2_28``
166-
- Manylinux compatibility standard
166+
- Manylinux compatibility standard; the script accepts only ``_2_28``
167167
* - ``CMAKE_OPTIONS``
168168
- *(empty)*
169169
- Extra CMake ``-D`` definitions
@@ -246,18 +246,24 @@ the build script::
246246

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

249+
A library the wheel must not bundle, such as the CUDA driver, is named with
250+
``-x`` (``--exclude_libs``); separate several names with ``;``::
251+
252+
./dockcross-manylinux-download-cache-and-build-module-wheels.sh -x "libcuda.so.1" cp311
253+
249254
**macOS**: add the directory to ``DYLD_LIBRARY_PATH``::
250255

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

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

256262
.. code-block:: powershell
257263
258264
.\windows-download-cache-and-build-module-wheels.ps1 `
259-
-python_version_minor 10 `
260-
-setup_options "--exclude-libs nvcuda.dll"
265+
-python_version_minor 11 `
266+
-setup_options "--lib-paths C:\CUDA\bin --exclude-libs nvcuda.dll"
261267
262268
263269
Output

‎docs/Build_ITK_Python_packages.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Key Options
164164
- Root directory for all build artifacts
165165
* - ``--manylinux-version``
166166
- ``$MANYLINUX_VERSION``, else empty
167-
- Manylinux compatibility standard (e.g. ``_2_28``, ``_2_34``); empty
167+
- Manylinux compatibility standard; only ``_2_28`` is built. Empty
168168
builds native Linux, and a ``manylinux228-*`` platform env implies
169169
``_2_28``
170170
* - ``--itk-source-dir``

‎scripts/dockcross-manylinux-download-cache-and-build-module-wheels.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ ITK_GIT_TAG=${ITK_GIT_TAG:=${ITK_PACKAGE_VERSION}}
108108
# Set default values
109109
MANYLINUX_VERSION=${MANYLINUX_VERSION:-_2_28}
110110
TARGET_ARCH=${TARGET_ARCH:-x64}
111-
# ITKPythonBuilds has caches for manylinux_2_28 only; manylinux2014 is no longer built.
111+
# ITKPythonBuilds publishes caches for manylinux_2_28 only.
112112
if [ "${MANYLINUX_VERSION}" != "_2_28" ]; then
113113
echo "ERROR: MANYLINUX_VERSION=${MANYLINUX_VERSION} is not built; module wheels are manylinux_2_28 only."
114114
exit 1

‎tests/test_build_steps.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def second() -> object:
155155
def test_a_module_build_keeps_its_own_step_report(
156156
linux_builder: LinuxBuildPythonInstance,
157157
) -> None:
158-
"""A module's inputs differ from ITK's, so a shared report reran every step."""
158+
"""A module's inputs differ from ITK's, so each needs its own report."""
159159
builder = _configure(linux_builder)
160160
builder.dist_dir = Path("dist")
161161
assert builder.build_report_path().name == "build_log_manylinux228-py311.json"

0 commit comments

Comments
 (0)