From 9aa0534f47e5825ffe8c4061feddc6d4d4e61ead Mon Sep 17 00:00:00 2001 From: Naveen M K Date: Wed, 11 Sep 2024 23:31:26 +0530 Subject: [PATCH] download_dlls: update to pango 1.54.0 --- packing/download_dlls.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packing/download_dlls.py b/packing/download_dlls.py index 1d04b8d6..c4acf8fd 100644 --- a/packing/download_dlls.py +++ b/packing/download_dlls.py @@ -12,14 +12,14 @@ from pathlib import Path from urllib.request import urlretrieve as download -PANGO_VERSION = "1.50.5" +PANGO_VERSION = "1.54.0" def get_platform(): if (struct.calcsize("P") * 8) == 32: - return "32" + return "x86" else: - return "64" + return "x64" logging.basicConfig(format="%(levelname)s - %(message)s", level=logging.DEBUG) @@ -30,7 +30,7 @@ def get_platform(): download_url = ( "https://github.com/naveen521kk/pango-build/releases" - f"/download/v{PANGO_VERSION}/pango-build-win{plat}.zip" + f"/download/v{PANGO_VERSION}/pango-v{PANGO_VERSION}-{plat}.zip" ) final_location = Path(r"C:\cibw\vendor") download_location = Path(tempfile.mkdtemp()) @@ -52,7 +52,7 @@ def get_platform(): logging.info("Completed Extracting.") logging.info("Moving Files accordingly.") -plat_location = download_location +plat_location = download_location / f"pango-{plat}" for src_file in plat_location.glob("*"): logging.debug(f"Moving {src_file} to {final_location}...") shutil.move(str(src_file), str(final_location))