Merge pull request #1968 from tokejepsen/bugfix/build_dependencies

Fix PyQt5 on Windows build.
This commit is contained in:
Milan Kolar 2021-08-31 18:38:56 +02:00 committed by GitHub
commit be1301e511
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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())