Skip to content

Commit

Permalink
download_dlls: update to pango 1.54.0
Browse files Browse the repository at this point in the history
  • Loading branch information
naveen521kk committed Sep 11, 2024
1 parent 363039e commit 9aa0534
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packing/download_dlls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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())
Expand All @@ -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))
Expand Down

0 comments on commit 9aa0534

Please sign in to comment.