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

Force include binaries #17

Merged
merged 1 commit into from
Jan 13, 2025
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
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 @@

# Perform any cleanup actions
build_plan.cleanup()

# force include libraries
for library in libraries:
if build_plan.platform.platform == "win32":
suffix = "dll"

Check warning on line 87 in hatch_cpp/plugin.py

View check run for this annotation

Codecov / codecov/patch

hatch_cpp/plugin.py#L87

Added line #L87 was not covered by tests
else:
suffix = "so"
build_data["force_include"][f"{library.name}.{suffix}"] = f"{library.name}.{suffix}"
Loading