Don't check for shared

Contributes to CURA-9711
This commit is contained in:
jelle Spijker 2022-10-05 11:08:53 +02:00 committed by jspijker
parent ad65ffa76c
commit e2cf889f7f

View file

@ -218,15 +218,10 @@ class CuraConan(ConanFile):
# Make sure all Conan dependencies which are shared are added to the binary list for pyinstaller # Make sure all Conan dependencies which are shared are added to the binary list for pyinstaller
for _, dependency in self.dependencies.host.items(): for _, dependency in self.dependencies.host.items():
try: for bin_paths in dependency.cpp_info.bindirs:
is_shared = dependency.options.shared binaries.extend([(f"{p}", ".") for p in Path(bin_paths).glob("**/*")])
except ConanException: for lib_paths in dependency.cpp_info.libdirs:
is_shared = False binaries.extend([(f"{p}", ".") for p in Path(lib_paths).glob("**/*")])
if is_shared:
for bin_paths in dependency.cpp_info.bindirs:
binaries.extend([(f"{p}", ".") for p in Path(bin_paths).glob("**/*")])
for lib_paths in dependency.cpp_info.libdirs:
binaries.extend([(f"{p}", ".") for p in Path(lib_paths).glob("**/*")])
# Copy dynamic libs from lib path # Copy dynamic libs from lib path
binaries.extend([(f"{p}", ".") for p in Path(self._base_dir.joinpath("lib")).glob("**/*.dylib*")]) binaries.extend([(f"{p}", ".") for p in Path(self._base_dir.joinpath("lib")).glob("**/*.dylib*")])