Skip to content

Commit 16bbb64

Browse files
authored
Merge pull request #181 from tbirdso/fix-windows-libpaths
BUG: Fix path list for library fixup on Windows
2 parents 55b6450 + 7dc86ea commit 16bbb64

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/windows_build_module_wheels.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ def build_wheels(py_envs=DEFAULT_PY_ENVS, cleanup=True, cmake_options=[]):
6666

6767

6868
def fixup_wheel(py_envs, filepath, lib_paths:str=''):
69-
lib_paths = lib_paths.strip() if lib_paths.isspace() else lib_paths.strip() + ";"
70-
lib_paths += "C:/P/IPP/oneTBB-prefix/bin"
69+
lib_paths = ';'.join(["C:/P/IPP/oneTBB-prefix/bin",lib_paths.strip()]).strip(';')
7170
print(f'Library paths for fixup: {lib_paths}')
7271

7372
py_env = py_envs[0]
@@ -81,7 +80,7 @@ def fixup_wheel(py_envs, filepath, lib_paths:str=''):
8180
def fixup_wheels(py_envs, lib_paths:str=''):
8281
# shared library fix-up
8382
for wheel in glob.glob(os.path.join(ROOT_DIR, "dist", "*.whl")):
84-
fixup_wheel(py_envs, wheel, ';'.join(lib_paths))
83+
fixup_wheel(py_envs, wheel, lib_paths)
8584

8685
if __name__ == '__main__':
8786
parser = argparse.ArgumentParser(description='Driver script to build ITK Python module wheels.')

0 commit comments

Comments
 (0)