Skip to content

Commit a56cfb1

Browse files
committed
pyproject.toml updated, try adding custom hatch build hook for creating platform specific wheels
1 parent a76105b commit a56cfb1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

hatch_build.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from hatchling.builders.hooks.plugin.interface import BuildHookInterface
2+
3+
4+
class CustomBuildHook(BuildHookInterface):
5+
def initialize(self, version, build_data):
6+
build_data["pure_python"] = False
7+
build_data["infer_tag"] = True

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ include = ["py_lua_helper.py", "test_example.py", "loader.lua", "/test_example"]
2525

2626
[tool.hatch.build.targets.wheel]
2727
include = ["py_lua_helper.py", "test_example.py", "loader.lua", "/test_example"]
28+
29+
[tool.hatch.build.targets.wheel.hooks.custom]

0 commit comments

Comments
 (0)