Skip to content

Commit b295ff2

Browse files
authored
Merge pull request #172 from tbirdso/comments
DOC: Update documentation for shared library command line arguments
2 parents bff7c53 + 10e8efe commit b295ff2

File tree

5 files changed

+53
-1
lines changed

5 files changed

+53
-1
lines changed

scripts/internal/manylinux-build-module-wheels.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
#!/usr/bin/env bash
22

3-
# Run this script inside a dockcross container to build Python wheels for an ITK module
3+
# Run this script inside a dockcross container to build Python wheels for an ITK module.
4+
#
5+
# Versions can be restricted by passing them in as arguments to the script.
6+
# For example,
7+
#
8+
# /tmp/dockcross-manylinux-x64 manylinux-build-module-wheels.sh cp39
9+
#
10+
# Shared library dependencies can be included in the wheel by mounting them to /usr/lib64 or /usr/local/lib64
11+
# before running this script.
12+
#
13+
# For example,
14+
#
15+
# DOCKER_ARGS="-v /path/to/lib.so:/usr/local/lib64/lib.so"
16+
# /tmp/dockcross-manylinux-x64 -a "$DOCKER_ARGS" manylinux-build-module-wheels.sh
17+
#
418

519
# -----------------------------------------------------------------------
620
# These variables are set in common script:

scripts/internal/manylinux-build-wheels.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
#!/usr/bin/env bash
22

3+
# Run this script inside a dockcross container to build Python wheels for ITK.
4+
#
5+
# Versions can be restricted by passing them in as arguments to the script.
6+
# For example,
7+
#
8+
# /tmp/dockcross-manylinux-x64 manylinux-build-wheels.sh cp39
9+
#
10+
# Shared library dependencies can be included wheels by mounting them to /usr/lib64 or /usr/local/lib64
11+
# before running this script.
12+
#
13+
# For example,
14+
#
15+
# DOCKER_ARGS="-v /path/to/lib.so:/usr/local/lib64/lib.so"
16+
# /tmp/dockcross-manylinux-x64 -a "$DOCKER_ARGS" manylinux-build-wheels.sh
17+
#
18+
319
# -----------------------------------------------------------------------
420
# These variables are set in common script:
521
#

scripts/macpython-build-module-wheels.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
# For example,
88
#
99
# scripts/macpython-build-module-wheels.sh 2.7 3.5
10+
#
11+
# Shared libraries can be included in the wheel by exporting them to DYLD_LIBRARY_PATH before
12+
# running this script.
13+
#
14+
# For example,
15+
#
16+
# export DYLD_LIBRARY_PATH="/path/to/libs"
17+
# scripts/macpython-build-module-wheels.sh cp39
18+
#
1019

1120
# -----------------------------------------------------------------------
1221
# These variables are set in common script:

scripts/macpython-build-wheels.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
# For example,
77
#
88
# scripts/macpython-build-wheels.sh 3.9
9+
#
10+
# Shared libraries can be included in the wheel by exporting them to DYLD_LIBRARY_PATH before
11+
# running this script.
12+
#
13+
# For example,
14+
#
15+
# export DYLD_LIBRARY_PATH="/path/to/libs"
16+
# scripts/macpython-build-module-wheels.sh cp39
17+
#
918

1019
# -----------------------------------------------------------------------
1120
# These variables are set in common script:

scripts/windows_build_module_wheels.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#!/usr/bin/env python
2+
3+
# See usage with .\scripts\windows_build_module_wheels.py --help
4+
15
from subprocess import check_call
26
import os
37
import glob

0 commit comments

Comments
 (0)