Skip to content

Commit 866075c

Browse files
committed
doc: Document how to build with a custom version of ITK
1 parent cf6bcd1 commit 866075c

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

docs/Build_ITK_Python_packages.rst

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,13 @@ Build the ITK Python wheel with the following command::
118118
./build-itk/bin/pip install -r requirements-dev.txt
119119
./build-itk/bin/python setup.py bdist_wheel
120120

121-
Efficiently building wheels for different version of python
122-
-----------------------------------------------------------
121+
Build a wheel for a custom version of ITK
122+
-----------------------------------------
123123

124-
If on a given platform you would like to build wheels for different version of python, you can download and build the ITK components independent from python first and reuse them when building each wheel.
124+
To build a wheel for a custom version of ITK, point to your ITK git repository
125+
with the `ITK_SOURCE_DIR` CMake variable::
125126

126-
Here are the steps:
127-
128-
- Build ITKPythonPackage with ITKPythonPackage_BUILD_PYTHON set to OFF
129-
130-
- Build "flavor" of package using::
131-
132-
python setup.py bdist_wheel -- \
127+
./build-itk/bin/python setup.py bdist_wheel -- \
133128
-DITK_SOURCE_DIR:PATH=/path/to/ITKPythonPackage-core-build/ITK
129+
130+
Other CMake variables can also be passed with `-D` after the double dash.

0 commit comments

Comments
 (0)