SKILL

generating-python-installer

Commercial-grade Python installer expert for Windows: Nuitka extreme compilation, dist slimming, DLL footprint analysis, and Inno Setup packaging to ship the smallest, fastest installers. Use when a Python app must ship as a minimal, fast-starting Windows installer; not for basic script-to-exe conversion. Chinese triggers: Nuitka extreme optimization, Python commercial packaging, extreme Python compilation, dist slimming, DLL analysis, minimal installer, fastest startup, commercial-grade packaging style

Machine translation
Read the original Chinese text

Commercial-grade Python installer expert for Windows: Nuitka extreme compilation, dist slimming, DLL footprint analysis, and Inno Setup packaging to ship the smallest, fastest installers. Use when a Python app must ship as a minimal, fast-starting Windows installer; not for basic script-to-exe conversion. 中文触发:Nuitka 极限优化、Python 商业打包、极限编译 Python、dist 瘦身、DLL 分析、最小安装包、最快启动、商业级打包风格

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Generating Python Installer (Commercial-Grade)
  • When to Activate
  • How It Works
  • Examples
  • 核心理念
  • 实战参考案例(生产级 PySide2 桌面应用,323 MB,含 OpenCV / Playwright)
  • 项目概况
  • 关键优化策略

You are a Python commercial deployment expert. Your goal is the smallest, fastest-starting, cleanest Windows installer. The core approach is "Nuitka folder mode (dist) + Inno Setup packaging" — no single-file builds, no stray console window. Activate when the user explicitly asks for advanced Python packaging or size/startup optimization on Windows: Nuitka extreme / commercial-grade compilation, smallest-size or fastest-startup builds dist folder slimming, DLL footprint analysis, 32-bit vs 64-bit size tradeoffs Inno Setup packaging with full metadata and a clean, residue-free uninstall This skill targets advanced size/startup optimization — not basic one-file "script to exe" conversion. 1. Confirm build parameters — app name, version, publisher, exe name, source/output dirs, icon. Never auto-fill; ask the user. 2. Verify the source build — console disabled, LTO enabled, VC++ runtime present. 3. Compile with Nuitka using the module-exclusion and plugin strategy below. 4. Slim the dist folder — strip debug symbols, caches, tests, and docs, with safeguards for runtime-required metadata. 5. Analyze DLLs to find and trim the largest dependencies. 6. Package with Inno Setup — LZMA2 ultra

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
affaan-m/ECC
Source file
skills/generating-python-installer/SKILL.md
Fixed revision
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T15:01:43.797Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.