Skip to content

Commit 73b9e19

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_build_backend/backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ def _bootstrap_build(temp_path: str, config_settings: dict[str, list[str] | str]
9797
archive_url = re.findall(rf'set\({kind}_url\s+"(?P<data>.*)"\)$', cmake_urls, flags=re.MULTILINE)[0]
9898
archive_sha256 = re.findall(rf'set\({kind}_sha256\s+"(?P<data>.*)"\)$', cmake_urls, flags=re.MULTILINE)[0]
9999

100-
archive_name = source_url.rsplit("/", maxsplit=1)[1]
100+
archive_name = archive_url.rsplit("/", maxsplit=1)[1]
101101
archive_path = archive_dir / archive_name
102102
if not archive_path.exists():
103-
with urllib.request.urlopen(source_url) as response:
103+
with urllib.request.urlopen(archive_url) as response:
104104
archive_path.write_bytes(response.read())
105105

106106
sha256 = hashlib.sha256(archive_path.read_bytes()).hexdigest()

0 commit comments

Comments
 (0)