Switch from hatch to setuptools/CFFI build to produce wheels correctly.
This commit is contained in:
+7
-9
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user