fix(delivery): exclude wheel development header records

This commit is contained in:
2026-10-12 16:05:15 +08:00
parent 53f9e55fd8
commit 5d127ad4db
+4
View File
@@ -105,6 +105,10 @@ def dependency_records(site: Path) -> None:
name, checksum, size = row
if name.startswith("../../../bin/"):
continue
if name.startswith("../../../include/site/python3.13/"):
# Wheel development headers, like console scripts, are not
# needed in the read-only service runtime.
continue
if "__pycache__" in Path(name).parts or name.endswith((".pyc", ".pyo")):
continue
relative_name("site/" + name)