PYSIDE6-DEPLOY(1)
π PYSIDE6-DEPLOY(1) π
okay bestie, welcome to the pyside6-deploy page β it lives in the PySide6 tools section of the manual, and honestly? it's giving "ship your app to the world" energy. π
β¨ NAME β¨
pyside6-deploy β deploy π«Ά
π DESCRIPTION π
so basically, here's the vibe. the usage line goes like this, and yes it's long, she's a main character:
deploy.py [-h] [-c CONFIG_FILE] [--init] [-v] [--dry-run]
[--keep-deployment-files] [-f] [--name NAME] [--extra-ignore-dirs
EXTRA_IGNORE_DIRS] [--extra-modules EXTRA_MODULES] [--mode
{onefile,standalone}] [--nuitka-version NUITKA_VERSION] [main_file]
this tool deploys PySide6 to desktop platforms β that's Windows, Linux and macOS, the whole trio π. and depending on which platform you're on, it produces a different lil executable baby:
- Windows β
.exe - macOS β
.app - Linux β
.bin
slay. no cap. literally each platform gets its own flavor. β¨
π positional arguments π
main_fileβ the path to your main python file, aka where the magic starts π
π¦ options π¦
okay this is the part you actually came for, so let's go one by one, no skipping, we respect every single flag in this house:
-h,--helpβ shows you this help message and then dips out (exit). the classic. π-c,--config-file CONFIG_FILEβ the path to your.specconfig file π--initβ creates thepysidedeploy.specfile for you, but only if it doesn't already exist. no overwriting, she respects boundaries π-v,--verboseβ run it in verbose mode, aka it tells you everything that's happening π£οΈ--dry-runβ just shows you the commands that would be run. peek behind the curtain, touch nothing β¨--keep-deployment-filesβ keeps the generated deployment files that were generated π-f,--forceβ forces all input prompts. she will not be asking twice π--name NAMEβ your application's name π·οΈ--extra-ignore-dirs EXTRA_IGNORE_DIRSβ a comma-separated list of directory names inside your project dir. these directories get skipped when it's searching for Python files that are relevant to the project. example usage:--extra-ignore-dirs=doc,translations--extra-modules EXTRA_MODULESβ a comma-separated list of Qt modules to add to the application, in case they don't get found automatically. this whole situation happens when you've got'import PySide6'in your code instead of'from PySide6 import <module>'(iykyk π). the module name is specified either by omitting the prefix of Qt or by including it. example usage 1:--extramodules=Network,Svgexample usage 2:--extramodules=QtNetwork,QtSvg--mode {onefile,standalone}β the mode your application gets deployed in. the options areonefileandstandalone, and the default value isonefile. this option translates to the mode Nuitka uses to create the executable. heads up though: macOS by default uses the--standaloneoption. πΈ--nuitka-version NUITKA_VERSIONβ overrides the Nuitka version that gets installed for deployment, e.g.--nuitka-version=4.0π₯
reminder bestie: those are the only values for--mode(onefileandstandalone), and the default isonefileβ except on macOS where--standaloneis the default. don't come for me, that's just what the page says π
aaaand that's the whole thing!! you're officially a deployment girly now π§π
this page comes from pyside6-deploy 6.11, dated September 2026 β so when future you is reading this in a group chat, you know exactly which version ate π β¨ periodt.
π¦ where this page comes from
- ubuntu stonking: pyside6-tools 6.11.2-1build1 Β· GPL-3-EXCEPT OR LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms