@@ -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