Skip to content

Commit 59439b9

Browse files
authored
Merge pull request #17 from python-project-templates/tkp/fi
Force include binaries
2 parents 3173bb8 + a30986d commit 59439b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hatch_cpp/plugin.py

+8
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,11 @@ def initialize(self, version: str, build_data: dict[str, t.Any]) -> None:
8080

8181
# Perform any cleanup actions
8282
build_plan.cleanup()
83+
84+
# force include libraries
85+
for library in libraries:
86+
if build_plan.platform.platform == "win32":
87+
suffix = "dll"
88+
else:
89+
suffix = "so"
90+
build_data["force_include"][f"{library.name}.{suffix}"] = f"{library.name}.{suffix}"

0 commit comments

Comments
 (0)