-
Notifications
You must be signed in to change notification settings - Fork 18
Package Python App
Package a Python desktop application for distribution using PyInstaller, Nuitka, or cx_Freeze. Handles dependency detection, data files, hidden imports, single-file vs directory builds, and platform-specific signing.
- You have a working Python app and need to distribute it as a standalone executable
- You are troubleshooting PyInstaller/Nuitka/cx_Freeze build failures
- You need to bundle data files, images, or databases with your application
- You want to set up code signing for your packaged application
- You are choosing between packaging tools and need trade-off guidance
In GitHub Copilot Chat -- select from the prompt picker:
/package-python-app
Then provide the entry point when prompted.
In Claude Code:
@python-specialist package my_app/__main__.py with PyInstaller
The agent asks about your preferred packaging tool, build mode, target platform, GUI framework, data files, icon, and signing requirements.
Scans imports to identify third-party packages, hidden imports (common with wxPython, PIL, SQLAlchemy), data files referenced in code, and runtime hooks needed.
Generates the appropriate configuration:
-
PyInstaller: A
.specfile with Analysis paths, hidden imports, datas, excludes, and platform-specific settings -
Nuitka: A build script with
--standalone/--onefile, plugins, data includes, and icon settings -
cx_Freeze: A
setup.pywith include/exclude lists, data files, and installer options
Runs the build, reports output size, lists warnings, and suggests verification steps.
Covers installer creation (NSIS, Inno Setup, DMG, AppImage), auto-update setup, antivirus false positive handling, and code signing.
- scaffold-wxpython-app -- Start a new app to package
- audit-desktop-a11y -- Audit the app before shipping
- python-specialist -- The specialist agent that powers this prompt
- developer-hub -- Routes to the right specialist for any developer task
- wxpython-specialist -- wxPython-specific packaging considerations
- Accessibility Lead
- Web Accessibility Wizard
- Document Accessibility Wizard
- Alt Text and Headings
- ARIA Specialist
- Contrast Master
- Forms Specialist
- Keyboard Navigator
- Link Checker
- Live Region Controller
- Modal Specialist
- Tables Data Specialist
- Word Accessibility
- Excel Accessibility
- PowerPoint Accessibility
- PDF Accessibility
- Office Scan Config
- PDF Scan Config
- Testing Coach
- WCAG Guide