hatch-cpp 0.1.3__py3-none-any.whl → 0.1.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
hatch_cpp/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.1.3"
1
+ __version__ = "0.1.4"
2
2
 
3
3
  from .hooks import hatch_register_build_hook
4
4
  from .plugin import HatchCppBuildHook
hatch_cpp/plugin.py CHANGED
@@ -80,3 +80,11 @@ class HatchCppBuildHook(BuildHookInterface[HatchCppBuildConfig]):
80
80
 
81
81
  # Perform any cleanup actions
82
82
  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}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hatch-cpp
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Hatch plugin for C++ builds
5
5
  Project-URL: Repository, https://github.com/python-project-templates/hatch-cpp
6
6
  Project-URL: Homepage, https://github.com/python-project-templates/hatch-cpp
@@ -1,6 +1,6 @@
1
- hatch_cpp/__init__.py,sha256=HyvKfDwg9k3r-ZhbFgZxHFiOGhTAt6t--MkAu87hTeo,129
1
+ hatch_cpp/__init__.py,sha256=2Kua5noGk43pVa4A0cQkjrIoU4jNodNXO8_WMGRokfA,129
2
2
  hatch_cpp/hooks.py,sha256=SQkF5WJIgzw-8rvlTzuQvBqdP6K3fHgnh6CZOZFag50,203
3
- hatch_cpp/plugin.py,sha256=edzQASu1YXQMs2Z_moVr5M3YZLc_yP63EBCaGmEuXPA,2788
3
+ hatch_cpp/plugin.py,sha256=dFKo6NKVa-fBXhz2nGB_vFDMvCGKtHn5GeFyCXX9vAo,3089
4
4
  hatch_cpp/structs.py,sha256=haFLBwb3T1YOC-ZjsbPB_X2Hv8whp4WMu3MrAIMdLkg,8857
5
5
  hatch_cpp/utils.py,sha256=topOiT6biVzisNAEKHvYzU-JdA56B3LA61jbU9fjAEQ,4444
6
6
  hatch_cpp/tests/test_all.py,sha256=zxMSmbNDdS_pIhjBR9IQfnJLtehCmbHqJXWC40Y8TXg,28
@@ -23,8 +23,8 @@ hatch_cpp/tests/test_project_pybind/cpp/project/basic.hpp,sha256=LZSfCfhLY_91MBO
23
23
  hatch_cpp/tests/test_project_pybind/project/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  hatch_cpp/toolchains/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  hatch_cpp/toolchains/cmake.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
- hatch_cpp-0.1.3.dist-info/METADATA,sha256=i3lywqh2ZFmVEyWmWNi1a_eBQXNUvtWFSoeQcMDTLWY,3003
27
- hatch_cpp-0.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
- hatch_cpp-0.1.3.dist-info/entry_points.txt,sha256=RgXfjpD4iwomJQK5n7FnPkXzb5fOnF5v3DI5hbkgVcw,30
29
- hatch_cpp-0.1.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
30
- hatch_cpp-0.1.3.dist-info/RECORD,,
26
+ hatch_cpp-0.1.4.dist-info/METADATA,sha256=prtX86SG1y3FlNtGsgoHQxcopKpiML02jRbsjY3qepw,3003
27
+ hatch_cpp-0.1.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
+ hatch_cpp-0.1.4.dist-info/entry_points.txt,sha256=RgXfjpD4iwomJQK5n7FnPkXzb5fOnF5v3DI5hbkgVcw,30
29
+ hatch_cpp-0.1.4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
30
+ hatch_cpp-0.1.4.dist-info/RECORD,,