From a30986d7cd97344bcd13408d736c99e440fba026 Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Sun, 12 Jan 2025 21:16:10 -0500 Subject: [PATCH] Force include binaries --- hatch_cpp/plugin.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hatch_cpp/plugin.py b/hatch_cpp/plugin.py index 7fcbfbf..4166551 100644 --- a/hatch_cpp/plugin.py +++ b/hatch_cpp/plugin.py @@ -80,3 +80,11 @@ def initialize(self, version: str, build_data: dict[str, t.Any]) -> None: # Perform any cleanup actions build_plan.cleanup() + + # force include libraries + for library in libraries: + if build_plan.platform.platform == "win32": + suffix = "dll" + else: + suffix = "so" + build_data["force_include"][f"{library.name}.{suffix}"] = f"{library.name}.{suffix}"
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: