Switch from hatch to setuptools/CFFI build to produce wheels correctly.

This commit is contained in:
Leo Vasanko
2025-11-06 16:34:32 -06:00
parent fd24bb02f8
commit f8cc02eb41
8 changed files with 108 additions and 155 deletions
+7 -9
View File
@@ -1,11 +1,11 @@
[build-system]
requires = ["hatchling", "cffi>=2.0.0"]
build-backend = "hatchling.build"
requires = ["setuptools>=61.0", "cffi>=2.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "pyaegis"
version = "0.1.0"
description = "Python bindings for libaegis (links to system library)"
description = "Python bindings for libaegis (links to static library)"
requires-python = ">=3.12"
classifiers = [
"Programming Language :: Python :: 3",
@@ -27,10 +27,8 @@ dev = [
"pytest>=8.4.2",
]
[tool.hatch.build.hooks.custom]
# Placeholder build hook for compiling libaegis with Zig during wheel builds.
# The actual Zig build is intentionally not executed yet.
path = "tools/build_hook.py"
[tool.hatch.build.targets.wheel]
[tool.setuptools]
packages = ["pyaegis"]
[tool.setuptools.package-data]
pyaegis = ["*.h", "*.so", "*.pyd"]