Skip to content

Commit e9f8ddf

Browse files
committed
Merge branch 'release'
2 parents def06aa + 2e2ead4 commit e9f8ddf

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
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.

scripts/internal/windows_build_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import shutil
66

7-
DEFAULT_PY_ENVS = ["35-x64", "36-x64", "37-x64", "38-x64", "39-x64"]
7+
DEFAULT_PY_ENVS = ["36-x64", "37-x64", "38-x64", "39-x64"]
88

99
SCRIPT_DIR = os.path.dirname(__file__)
1010
ROOT_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, "..", ".."))

0 commit comments

Comments
 (0)