@@ -44,10 +44,10 @@ def supported_targets(yaml_path: pathlib.Path):
44
44
targets = set ()
45
45
46
46
for target , settings in get_targets (yaml_path ).items ():
47
- for platform in settings ["host_platforms" ]:
48
- if sys .platform == "linux" and platform == "linux64" :
47
+ for host_platform in settings ["host_platforms" ]:
48
+ if sys .platform == "linux" and host_platform == "linux64" :
49
49
targets .add (target )
50
- elif sys .platform == "darwin" and platform == "macos" :
50
+ elif sys .platform == "darwin" and host_platform == "macos" :
51
51
targets .add (target )
52
52
53
53
return targets
@@ -305,9 +305,7 @@ def download_entry(key: str, dest_path: pathlib.Path, local_name=None) -> pathli
305
305
assert isinstance (size , int )
306
306
assert isinstance (sha256 , str )
307
307
308
- local_name = local_name or url [url .rindex ("/" ) + 1 :]
309
-
310
- local_path = dest_path / local_name
308
+ local_path = dest_path / (local_name or url [url .rindex ("/" ) + 1 :])
311
309
download_to_path (url , local_path , size , sha256 )
312
310
313
311
return local_path
@@ -466,7 +464,7 @@ def add_licenses_to_extension_entry(entry):
466
464
if "path_static" in link or "path_dynamic" in link :
467
465
have_local_link = True
468
466
469
- for key , value in DOWNLOADS .items ():
467
+ for value in DOWNLOADS .values ():
470
468
if name not in value .get ("library_names" , []):
471
469
continue
472
470
0 commit comments