diff --git a/BUILD.md b/BUILD.md index 8009f34..330ef80 100644 --- a/BUILD.md +++ b/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 diff --git a/MANIFEST.in b/MANIFEST.in index 5ecb178..13c5f9b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -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 diff --git a/pyproject.toml b/pyproject.toml index be2754a..0de1856 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/build_backend.py b/tools/build_backend.py similarity index 98% rename from build_backend.py rename to tools/build_backend.py index 1932356..562c0ce 100644 --- a/build_backend.py +++ b/tools/build_backend.py @@ -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}. "