Skip to content

Commit b497362

Browse files
authored
Merge pull request #149 from thewtex/development-wheel
2 parents 88baa0f + 866075c commit b497362

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

docs/Build_ITK_Python_packages.rst

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,17 @@ Building ITK Python wheels
114114

115115
Build the ITK Python wheel with the following command::
116116

117-
mkvirtualenv build-itk
118-
pip install -r requirements-dev.txt
119-
python setup.py bdist_wheel
117+
python3 -m venv build-itk
118+
./build-itk/bin/pip install -r requirements-dev.txt
119+
./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)