Skip to content

Commit

Permalink
Merge pull request #17 from python-project-templates/tkp/fi
Browse files Browse the repository at this point in the history
Force include binaries
  • Loading branch information
timkpaine authored Jan 13, 2025
2 parents 3173bb8 + a30986d commit 59439b9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hatch_cpp/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 59439b9

Please sign in to comment.