Skip to content

Commit

Permalink
Add raqm dlls to Lib folder
Browse files Browse the repository at this point in the history
  • Loading branch information
rayzchen committed Jul 15, 2023
1 parent b2e51b0 commit a4993c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ def stripNumpy():
for folder in glob.glob("Lib/numpy/*/tests"):
shutil.rmtree(folder)

def setupPillow():
download("https://download.lfd.uci.edu/pythonlibs/archived/libraqm-0.7.1.dll.zip", "../raqm.zip")
with zipfile.ZipFile("../raqm.zip") as zf:
zf.extractall("../raqm-dlls")
for file in glob.glob("../raqm-dlls/*/x64/*"):
shutil.move(file, "Lib")

def setupPyWin32(zf):
os.makedirs("Lib/win32", exist_ok=True)
files = [
Expand Down Expand Up @@ -227,6 +234,7 @@ def setupLibraries(directory):

stripPySide6()
stripNumpy()
setupPillow()

def cleanPackageRoot():
print("MOVE *.pyd", flush=True)
Expand Down

0 comments on commit a4993c2

Please sign in to comment.