Don't use curl on Windows

This commit is contained in:
Shane Lee 2024-03-12 11:19:00 -06:00 committed by Pedro Algarvio
parent 9fb22eee5f
commit cbae042701

View file

@ -223,7 +223,11 @@ def download_file(
headers: dict[str, str] | None = None,
) -> pathlib.Path:
ctx.info(f"Downloading {dest.name!r} @ {url} ...")
curl = shutil.which("curl")
if sys.platform == "win32":
# We don't want to use curl on Windows, it doesn't work
curl = None
else:
curl = shutil.which("curl")
if curl is not None:
command = [curl, "-sS", "-L"]
if headers: