← ClaudeAtlas

nuitka-windows-packaginglisted

Use when packaging Python GUI apps into small, fast Windows installers with Nuitka standalone mode plus Inno Setup. Covers verified Nuitka flag recipes (anti-bloat, module exclusion, console-mode), 32-bit vs 64-bit size tradeoffs, dist slimming rules, DLL size analysis, Inno Setup LZMA2 template, and deprecated-flag gotchas.
Mixard/fable-pack · ★ 1 · AI & Automation · score 74
Install: claude install-skill Mixard/fable-pack
# Nuitka Windows Packaging (Commercial-Grade) Approach: **Nuitka standalone folder mode (dist) + Inno Setup packaging**. No single-file builds (slow startup, antivirus flags, missing-DLL failures), no stray console window. ## Flag Gotchas (version-specific) - `--disable-console` is **deprecated**. Use `--windows-console-mode=disable`. - Inno Setup: `ArchitecturesInstallIn64BitMode=x64` is deprecated; use `x64compatible` — and only for 64-bit builds. Omit the directive entirely for 32-bit builds. - `wmic` is removed on Windows 11 22H2+; detect CPU cores with the `%NUMBER_OF_PROCESSORS%` env var in batch scripts (a failed probe leaves `--jobs=0` = single-threaded compile). - Nuitka + MinGW fails on non-ASCII source paths: copy sources to an ASCII path and set `PYTHONIOENCODING=utf-8`. - If `_nuitka_temp.exe` appears in dist, exclude it from the installer `[Files]`. - Do not use UPX compression — it reliably triggers antivirus false positives. ## Nuitka Compile Recipes ### Tkinter app (lightest; expect 80-120 MB after optimization) ```batch nuitka --standalone --windows-console-mode=disable ^ --lto=yes ^ --jobs=8 ^ --enable-plugin=tk-inter ^ --enable-plugin=anti-bloat ^ --noinclude-pytest-mode=nofollow ^ --noinclude-setuptools-mode=nofollow ^ --nofollow-import-to=unittest,test,pytest,_pytest,doctest,pdb,pdbpp ^ --nofollow-import-to=setuptools,pip,distutils,pkg_resources ^ --nofollow-import-to=email.mime,http.server,xmlrpc,pydoc ^ --p