Skip to content

Commit 016db78

Browse files
committed
scripts: Fix testing wheels on Windows
1 parent 87d671c commit 016db78

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

scripts/windows_build_wheels.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,20 @@ def fixup_wheels():
219219
fixup_wheel(wheel)
220220

221221

222-
def test_wheels(single_wheel=False):
222+
def test_wheels(python_version):
223+
python_executable, \
224+
python_include_dir, \
225+
python_library, \
226+
pip, \
227+
ninja_executable, \
228+
path = venv_paths(python_version)
229+
check_call([pip, 'install', 'itk', '--no-cache-dir', '--no-index',
230+
'-f', 'dist'])
223231
check_call([
224232
python_executable,
225233
os.path.join(ROOT_DIR, "docs/code/testDriver.py")
226234
])
235+
print('Documentation tests passed.')
227236

228237

229238
def build_wheels(py_envs=DEFAULT_PY_ENVS, single_wheel=False,
@@ -270,7 +279,8 @@ def main(wheel_names=None):
270279
py_envs=args.py_envs, wheel_names=wheel_names,
271280
cmake_options=args.cmake_options)
272281
fixup_wheels()
273-
test_wheels(single_wheel=args.single_wheel)
282+
for py_env in args.py_envs:
283+
test_wheels(py_env)
274284

275285

276286
if __name__ == "__main__":

0 commit comments

Comments
 (0)