From 412dccc6182d456f660aca01b9f7444627f31686 Mon Sep 17 00:00:00 2001 From: Toke Stuart Jepsen Date: Fri, 27 Aug 2021 11:08:38 +0100 Subject: [PATCH] Fix PyQt5 on Windows build. --- tools/build_dependencies.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/build_dependencies.py b/tools/build_dependencies.py index 3898450471..e5a430e220 100644 --- a/tools/build_dependencies.py +++ b/tools/build_dependencies.py @@ -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())