Skip to content

Commit 7a10d27

Browse files
committed
Update backend.py
1 parent 73b9e19 commit 7a10d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_build_backend/backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def _bootstrap_build(temp_path: str, config_settings: dict[str, list[str] | str]
108108
msg = f"Invalid sha256 for {archive_url!r}. Expected {archive_sha256!r}, got {sha256!r}"
109109
raise ValueError(msg)
110110

111+
prefix_path = temp_path_ / "cmake-install"
111112
if os.name == "posix":
112113
assert archive_name.endswith(".tar.gz")
113114
tar_filter_kwargs = {"filter": "tar"} if hasattr(tarfile, "tar_filter") else {}
@@ -118,7 +119,6 @@ def _bootstrap_build(temp_path: str, config_settings: dict[str, list[str] | str]
118119
parallel = max(0, int(parallel_str) if parallel_str.isdigit() else 1) or os.cpu_count() or 1
119120

120121
bootstrap_path = next(temp_path_.glob("cmake-*/bootstrap"))
121-
prefix_path = temp_path_ / "cmake-install"
122122
bootstrap_args = [f"--prefix={prefix_path}", "--no-qt-gui", "--no-debugger", "--parallel={parallel}"]
123123
previous_cwd = Path().absolute()
124124
os.chdir(bootstrap_path.parent)

0 commit comments

Comments
 (0)