From 5d127ad4db59c805c16ab6385c96973f7f52e049 Mon Sep 17 00:00:00 2001 From: kronecker <2026692687@qq.com> Date: Mon, 12 Oct 2026 16:05:15 +0800 Subject: [PATCH] fix(delivery): exclude wheel development header records --- scripts/release/build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/release/build.py b/scripts/release/build.py index bd153a5..8ea9492 100644 --- a/scripts/release/build.py +++ b/scripts/release/build.py @@ -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)