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"