From 3bc413131aec1cd74ce99ddb30137e463ae33779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Rinc=C3=B3n=20Blanco?= Date: Wed, 5 Jun 2024 11:15:17 +0200 Subject: [PATCH] Fix zip deployer when bindirs/libdirs is empty --- extensions/deployers/runtime_zip_deploy.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extensions/deployers/runtime_zip_deploy.py b/extensions/deployers/runtime_zip_deploy.py index abb68d3..53e5d4e 100644 --- a/extensions/deployers/runtime_zip_deploy.py +++ b/extensions/deployers/runtime_zip_deploy.py @@ -1,6 +1,8 @@ -import os, shutil +import os +import shutil import zipfile + # USE **KWARGS to be robust against changes def deploy(graph, output_folder, **kwargs): conanfile = graph.root.conanfile @@ -9,7 +11,8 @@ def deploy(graph, output_folder, **kwargs): if d.package_folder is None: continue # look for .dlls and .exes in the bin folder - for dir in [d.cpp_info.bindir, d.cpp_info.libdir]: + search_dirs = (d.cpp_info.bindirs or []) + (d.cpp_info.libdirs or []) + for dir in search_dirs: search_dir = os.path.join(d.package_folder, dir) if not os.path.isdir(search_dir): continue