Browse Source

Collect all PyQt6-Qt6 dll's for Win and place them in the root

Quick fix, we should probably work with hooks in the future

Contributes to CURA-9365
j.spijker@ultimaker.com 2 years ago
parent
commit
ac2fbbf791
1 changed files with 3 additions and 0 deletions
  1. 3 0
      conanfile.py

+ 3 - 0
conanfile.py

@@ -176,6 +176,9 @@ class CuraConan(ConanFile):
                 binaries.extend([(f"{p}", ".") for p in Path(bin_paths).glob("**/*.dylib")])
                 binaries.extend([(f"{p}", ".") for p in Path(bin_paths).glob("**/*.so")])
 
+        # Collect all dll's from PyQt6 and place them in the root
+        binaries.extend([(f"{p}", ".") for p in Path(self._site_packages, "PyQt6", "Qt6").glob("**/*.dll")])
+
         with open(Path(__file__).parent.joinpath("Ultimaker-Cura.spec.jinja"), "r") as f:
             pyinstaller = Template(f.read())