Skip to content

Commit 67591b6

Browse files
jcfrthewtex
authored andcommitted
windows_build_wheels: Fix path to "WHEEL_NAMES.txt"
1 parent 0089714 commit 67591b6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/windows_build_wheels.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ def build_wrapped_itk(
7171
script_file.close()
7272
os.remove(script_file.name)
7373

74-
py_site_packages_path = os.path.join(
75-
SCRIPT_DIR, "..", "_skbuild", "cmake-install")
74+
py_site_packages_path = os.path.join(ROOT_DIR, "_skbuild", "cmake-install")
7675

7776
# Build ITK python
7877
with push_dir(directory=build_path, make_directory=True), \
@@ -129,8 +128,7 @@ def build_wheel(python_version, single_wheel=False):
129128
build_type = "Release"
130129
source_path = "%s/ITK-source" % STANDALONE_DIR
131130
build_path = "%s/ITK-win_%s" % (ROOT_DIR, python_version)
132-
setup_py_configure = os.path.join(
133-
SCRIPT_DIR, "..", "setup_py_configure.py")
131+
setup_py_configure = os.path.join(SCRIPT_DIR, "setup_py_configure.py")
134132

135133
# Clean up previous invocations
136134
if os.path.exists(build_path):
@@ -176,7 +174,7 @@ def build_wheel(python_version, single_wheel=False):
176174
python_executable, python_include_dir, python_library)
177175

178176
# Build wheels
179-
with open(os.path.join(SCRIPT_DIR, "..", "WHEEL_NAMES.txt"), "r") as content:
177+
with open(os.path.join(SCRIPT_DIR, "WHEEL_NAMES.txt"), "r") as content:
180178
wheel_names = content.readline()
181179

182180
for wheel_name in wheel_names:

0 commit comments

Comments
 (0)