diff --git a/hatch_cpp/__init__.py b/hatch_cpp/__init__.py index 6ec6cb1..7b0b672 100644 --- a/hatch_cpp/__init__.py +++ b/hatch_cpp/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.1.3" +__version__ = "0.1.4" from .hooks import hatch_register_build_hook from .plugin import HatchCppBuildHook 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}" diff --git a/pyproject.toml b/pyproject.toml index a49115b..4e90653 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ authors = [{name = "the hatch-cpp authors", email = "t.paine154@gmail.com"}] description = "Hatch plugin for C++ builds" readme = "README.md" license = { text = "Apache-2.0" } -version = "0.1.3" +version = "0.1.4" requires-python = ">=3.9" keywords = [ "hatch", @@ -62,7 +62,7 @@ Repository = "https://github.com/python-project-templates/hatch-cpp" Homepage = "https://github.com/python-project-templates/hatch-cpp" [tool.bumpversion] -current_version = "0.1.3" +current_version = "0.1.4" commit = true tag = false