From 4fa5416434edc8ff5ebe0a992e8fc19c4973170c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 17 Sep 2026 17:44:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):=20py=5Fcompile=E9=A2=84=E9=97=A8+?= =?UTF-8?q?=E6=8E=92=E9=99=A4.bak/.old=E2=80=94=E2=80=94=E6=BA=90=E7=A0=81?= =?UTF-8?q?=E6=80=81=E8=AF=AD=E6=B3=95=E5=9D=8F=E6=AD=BB=E6=96=87=E4=BB=B6?= =?UTF-8?q?(p2p=5Fmiddleware/rsa=5Fkey=5Frw/clickhouseor,=E9=9B=B6?= =?UTF-8?q?=E5=BC=95=E7=94=A8)Nuitka=E9=9B=B6=E5=AE=B9=E5=BF=8D=E6=95=B4?= =?UTF-8?q?=E6=89=B9FAIL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/build_binary.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build_binary.sh b/scripts/build_binary.sh index eb53573..4b2419d 100644 --- a/scripts/build_binary.sh +++ b/scripts/build_binary.sh @@ -72,7 +72,11 @@ tenant:tenant gen_jobs() { local pkgdir=$1 outpkg=$2 find "$pkgdir" -name "*.py" -not -path "*__pycache__*" -not -name "test_*" \ - -not -path "*/tests/*" -not -path "*/.git/*" | while read -r f; do + -not -path "*/tests/*" -not -path "*/.git/*" \ + -not -name "*.bak.py" -not -name "*.old.py" | while read -r f; do + # py_compile 预门(2026-09-17 实抓):源码态就语法坏的死文件(p2p_middleware/rsa_key_rw/ + # clickhouseor,全仓零引用、从未可 import)直接跳过——Nuitka 对语法零容忍会整批 FAIL + "$PY" -m py_compile "$f" 2>/dev/null || { echo "SKIP(broken-syntax,源码态死文件): $f" >> "$FAILLOG.broken"; continue; } local rel=${f#$pkgdir/} dir stem src mode cout dir=$(dirname "$rel"); stem=$(basename "$f" .py) local destdir="$OUT/$outpkg"; [ "$dir" != "." ] && destdir="$OUT/$outpkg/$dir"