Files
lnxgit/scripts/_check_deploy_tools.sh
LnxGit 057cf839bc 清理源码中的 UTF-8 BOM 与 CRLF,新增 clean_sources 检查工具
BOM 会让 pyside6-android-deploy 的 ast.parse 失败,从而无法定位 Qt 模块依赖;
clean_sources.py 可批量修复并用于 CI 检查。
2026-09-22 11:55:18 +08:00

25 lines
706 B
Bash

#!/usr/bin/env bash
# 列出已安装 PySide6 包内的子目录,判断打包工具是否随包分发。
set -uo pipefail
V="$HOME/lnxgit-android/venv/bin"
"$V/python" - <<'PY'
import os, PySide6
d = os.path.dirname(PySide6.__file__)
print("=== 子目录 ===")
for e in sorted(os.listdir(d)):
p = os.path.join(d, e)
if os.path.isdir(p):
print(" ", e, "->", len(os.listdir(p)), "项")
print()
print("=== PySide6 包的 __init__ 附近 ===")
print([e for e in sorted(os.listdir(d)) if e.endswith(".py")][:20])
PY
echo
echo "=== site-packages 顶层 ==="
"$V/python" - <<'PY'
import os, sysconfig
sp = sysconfig.get_paths()["purelib"]
for e in sorted(os.listdir(sp)):
print(" ", e)
PY