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