@@ -108,7 +108,6 @@ def _bootstrap_build(temp_path: str, config_settings: dict[str, list[str] | str]
108
108
msg = f"Invalid sha256 for { archive_url !r} . Expected { archive_sha256 !r} , got { sha256 !r} "
109
109
raise ValueError (msg )
110
110
111
- prefix_path = temp_path_ / "cmake-install"
112
111
if os .name == "posix" :
113
112
assert archive_name .endswith (".tar.gz" )
114
113
tar_filter_kwargs = {"filter" : "tar" } if hasattr (tarfile , "tar_filter" ) else {}
@@ -119,6 +118,8 @@ def _bootstrap_build(temp_path: str, config_settings: dict[str, list[str] | str]
119
118
parallel = max (0 , int (parallel_str ) if parallel_str .isdigit () else 1 ) or os .cpu_count () or 1
120
119
121
120
bootstrap_path = next (temp_path_ .glob ("cmake-*/bootstrap" ))
121
+ prefix_path = temp_path_ / "cmake-install"
122
+ cmake_path = prefix_path / "bin" / "cmake"
122
123
bootstrap_args = [f"--prefix={ prefix_path } " , "--no-qt-gui" , "--no-debugger" , "--parallel={parallel}" ]
123
124
previous_cwd = Path ().absolute ()
124
125
os .chdir (bootstrap_path .parent )
@@ -131,9 +132,10 @@ def _bootstrap_build(temp_path: str, config_settings: dict[str, list[str] | str]
131
132
else :
132
133
assert archive_name .endswith (".zip" )
133
134
with zipfile .ZipFile (archive_path ) as zip_ :
134
- zip_ .extractall (path = prefix_path )
135
+ zip_ .extractall (path = temp_path_ )
136
+ cmake_path = next (temp_path_ .glob ("cmake-*/bin/cmake" ))
135
137
136
- return str (prefix_path / "bin" / "cmake" )
138
+ return str (cmake_path )
137
139
138
140
139
141
def build_wheel (
0 commit comments