Fix PyQt5 on Windows build.

This commit is contained in:
Toke Stuart Jepsen 2021-08-27 11:08:38 +01:00
parent cd586be895
commit 412dccc618

View file

@ -135,6 +135,16 @@ progress_bar.close()
# iterate over frozen libs and create list to delete
libs_dir = build_dir / "lib"
# On Windows "python3.dll" is needed for PyQt5 from the build.
if platform.system().lower() == "windows":
src = Path(libs_dir / "PyQt5" / "python3.dll")
dst = Path(deps_dir / "PyQt5" / "python3.dll")
if src.exists():
shutil.copyfile(src, dst)
else:
_print("Could not find {}".format(src), 1)
sys.exit(1)
to_delete = []
# _print("Finding duplicates ...")
deps_items = list(deps_dir.iterdir())