--- scripts/build.py.orig 2026-08-01 14:46:08 +++ scripts/build.py 2026-08-01 17:27:12 @@ -111,25 +111,25 @@ file = "libcurl-impersonate.tar.gz" sysname = "linux-" + arch["libc"] if arch["system"] == "Linux" else arch["sysname"] - url = ( - f"https://github.com/lexiforest/curl-impersonate/releases/download/" - f"v{__version__}/libcurl-impersonate-v{__version__}" - f".{arch['arch']}-{sysname}.tar.gz" - ) +# url = ( +# f"https://github.com/lexiforest/curl-impersonate/releases/download/" +# f"v{__version__}/libcurl-impersonate-v{__version__}" +# f".{arch['arch']}-{sysname}.tar.gz" +# ) +# +# print(f"Downloading libcurl-impersonate from {url}...") +# retries = 3 +# for attempt in range(1, retries + 1): +# try: +# urlretrieve(url, file) +# break +# except (OSError, HTTPException) as e: +# if attempt == retries: +# raise +# wait = 2 ** (attempt - 1) +# print(f"Download failed ({e}); retry {attempt}/{retries} in {wait}s...") +# time.sleep(wait) - print(f"Downloading libcurl-impersonate from {url}...") - retries = 3 - for attempt in range(1, retries + 1): - try: - urlretrieve(url, file) - break - except (OSError, HTTPException) as e: - if attempt == retries: - raise - wait = 2 ** (attempt - 1) - print(f"Download failed ({e}); retry {attempt}/{retries} in {wait}s...") - time.sleep(wait) - print("Unpacking downloaded files...") os.makedirs(libdir, exist_ok=True) shutil.unpack_archive(file, libdir)