Some checks are pending
CI / Test (Python 3.10 on macos-latest) (push) Waiting to run
CI / Test (Python 3.11 on macos-latest) (push) Waiting to run
CI / Test (Python 3.12 on macos-latest) (push) Waiting to run
CI / Test (Python 3.8 on macos-latest) (push) Waiting to run
CI / Test (Python 3.9 on macos-latest) (push) Waiting to run
CI / Test (Python 3.10 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.11 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.12 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.8 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.9 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.10 on windows-latest) (push) Waiting to run
CI / Test (Python 3.11 on windows-latest) (push) Waiting to run
CI / Test (Python 3.12 on windows-latest) (push) Waiting to run
CI / Test (Python 3.8 on windows-latest) (push) Waiting to run
CI / Test (Python 3.9 on windows-latest) (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Release (push) Blocked by required conditions
Documentation / Build Documentation (push) Waiting to run
48 lines
1.5 KiB
TOML
48 lines
1.5 KiB
TOML
[sikuwa]
|
||
project_name = "sikuwa"
|
||
version = "1.3.0"
|
||
main_script = "sikuwa/__main__.py"
|
||
src_dir = "."
|
||
output_dir = "dist"
|
||
platforms = ["windows"]
|
||
|
||
[sikuwa.nuitka]
|
||
standalone = true
|
||
onefile = false # 推荐目录模式,方便调试
|
||
|
||
# 只包含 Sikuwa 运行时需要的包
|
||
include_packages = [
|
||
"click",
|
||
"tomli_w",
|
||
]
|
||
|
||
# 关键:将整个 Nuitka 包作为数据文件复制(不作为代码导入)
|
||
include_data_dirs = [
|
||
# 复制整个 nuitka 包到 bundled_packages/
|
||
{ src = ".venv/Lib/site-packages/nuitka", dest = "bundled_packages/nuitka" },
|
||
{ src = ".venv/Lib/site-packages/nuitka-*.dist-info", dest = "bundled_packages/nuitka.dist-info" },
|
||
|
||
# 复制 Nuitka 的依赖
|
||
{ src = ".venv/Lib/site-packages/ordered_set", dest = "bundled_packages/ordered_set" },
|
||
{ src = ".venv/Lib/site-packages/ordered_set-*.dist-info", dest = "bundled_packages/ordered_set.dist-info" },
|
||
|
||
{ src = ".venv/Lib/site-packages/zstandard", dest = "bundled_packages/zstandard" },
|
||
{ src = ".venv/Lib/site-packages/zstandard-*.dist-info", dest = "bundled_packages/zstandard.dist-info" },
|
||
]
|
||
|
||
extra_args = [
|
||
# 关键:不要导入 nuitka(避免循环依赖)
|
||
"--nofollow-import-to=nuitka",
|
||
"--nofollow-import-to=ordered_set",
|
||
"--nofollow-import-to=zstandard",
|
||
|
||
# 排除不必要的模块
|
||
"--nofollow-import-to=*.tests",
|
||
"--nofollow-import-to=pytest",
|
||
"--nofollow-import-to=setuptools",
|
||
|
||
"--assume-yes-for-downloads",
|
||
"--show-progress",
|
||
]
|
||
|