fix(build): py_compile预门+排除.bak/.old——源码态语法坏死文件(p2p_middleware/rsa_key_rw/clickhouseor,零引用)Nuitka零容忍整批FAIL
This commit is contained in:
parent
78598f59a7
commit
4fa5416434
@ -72,7 +72,11 @@ tenant:tenant
|
|||||||
gen_jobs() {
|
gen_jobs() {
|
||||||
local pkgdir=$1 outpkg=$2
|
local pkgdir=$1 outpkg=$2
|
||||||
find "$pkgdir" -name "*.py" -not -path "*__pycache__*" -not -name "test_*" \
|
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
|
local rel=${f#$pkgdir/} dir stem src mode cout
|
||||||
dir=$(dirname "$rel"); stem=$(basename "$f" .py)
|
dir=$(dirname "$rel"); stem=$(basename "$f" .py)
|
||||||
local destdir="$OUT/$outpkg"; [ "$dir" != "." ] && destdir="$OUT/$outpkg/$dir"
|
local destdir="$OUT/$outpkg"; [ "$dir" != "." ] && destdir="$OUT/$outpkg/$dir"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user