Move the build_backend script to tools folder.
This commit is contained in:
4
BUILD.md
4
BUILD.md
@@ -109,6 +109,4 @@ If you cannot install Zig, you may manually compile in the libaegis folder (Zig,
|
||||
- `pyaegis/` - Python package source
|
||||
- `libaegis/` - C library source (submodule)
|
||||
- `tests/` - Test suite
|
||||
- `tools/` - Code generation scripts
|
||||
- `examples/` - Usage examples
|
||||
- `build_backend.py` - Custom setuptools build backend to do the Zig libaegis build
|
||||
- `tools/` - Code generation scripts and `build_backend.py` used to build libaegis
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
include pyaegis/aegis_cdef.h
|
||||
include setup.py
|
||||
include build_backend.py
|
||||
include tools/build_backend.py
|
||||
include BUILD.md
|
||||
include README.md
|
||||
recursive-include libaegis *.c *.h *.zig *.zon
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=61.0", "cffi>=2.0.0"]
|
||||
build-backend = "build_backend"
|
||||
backend-path = ["."]
|
||||
backend-path = ["tools"]
|
||||
|
||||
[project]
|
||||
name = "pyaegis"
|
||||
|
||||
@@ -34,7 +34,7 @@ def _build_libaegis():
|
||||
# Check Zig availability first
|
||||
_check_zig_available()
|
||||
|
||||
libaegis_dir = Path(__file__).parent / "libaegis"
|
||||
libaegis_dir = Path(__file__).parent.parent / "libaegis"
|
||||
if not libaegis_dir.exists():
|
||||
raise FileNotFoundError(
|
||||
f"libaegis directory not found at {libaegis_dir}. "
|
||||
Reference in New Issue
Block a user