From 8cf475694fd6114a0ab5864db1fd51a090027e0a Mon Sep 17 00:00:00 2001 From: jelle spijker Date: Wed, 5 Oct 2022 13:47:09 +0200 Subject: [PATCH] Filter on specific extensions Contributes to CURA-9711 --- conanfile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conanfile.py b/conanfile.py index a932f0a232..23c3f364ba 100644 --- a/conanfile.py +++ b/conanfile.py @@ -219,9 +219,10 @@ class CuraConan(ConanFile): # Make sure all Conan dependencies which are shared are added to the binary list for pyinstaller for _, dependency in self.dependencies.host.items(): for bin_paths in dependency.cpp_info.bindirs: - binaries.extend([(f"{p}", ".") for p in Path(bin_paths).glob("**/*")]) + binaries.extend([(f"{p}", ".") for p in Path(bin_paths).glob("**/*.dll")]) for lib_paths in dependency.cpp_info.libdirs: - binaries.extend([(f"{p}", ".") for p in Path(lib_paths).glob("**/*")]) + binaries.extend([(f"{p}", ".") for p in Path(lib_paths).glob("**/*.so*")]) + binaries.extend([(f"{p}", ".") for p in Path(lib_paths).glob("**/*.dylib*")]) # Copy dynamic libs from lib path binaries.extend([(f"{p}", ".") for p in Path(self._base_dir.joinpath("lib")).glob("**/*.dylib*")])