Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix zip deployer when bindirs/libdirs is empty #130

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions extensions/deployers/runtime_zip_deploy.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
Loading