taupy build
Produce a production-ready build of your TauPy application inside the ./target folder.
The command performs four main steps:
- Rust launcher – copies a prebuilt
taupy.exeandWebView2Loader.dll(or uses your own). - Frontend – runs
npm run buildif a React project is detected (skipped otherwise). - Backend – bundles
main.pyintoapp.exevia Nuitka (onefile by default). - Packaging – copies all artefacts into
./target, ready to ship or code-sign.
Usage
There are no extra flags today – the behaviour is driven by taupy.toml. For example:
[build]
onefile = true # disable if you prefer directory mode
[build.modules]
pandas = true # include extra Python modules
What ends up in target/
| Path | Description |
|---|---|
app.exe |
Bundled backend (Python → C → EXE) |
dist/ |
Static frontend assets (if any) |
launcher/taupy.exe |
Rust/WebView2 launcher |
launcher/WebView2Loader.dll |
Loader DLL for Windows runtime |
You can now zip the folder or wrap it with an installer (MSI, Inno Setup, etc.).
Adding extra Python modules
If your backend imports C-extensions or pure-Python libs not auto-detected by Nuitka, list them under [build.modules] in taupy.toml:
TauPy passes them to Nuitka via --include-module=... flags.
Exit codes
0– build succeeded1– missing dependency or build tool failed
Troubleshooting
- "nuitka not found" – install with
pip install nuitka(Python ≥3.11) - "npm build failed" – fix errors in your React project; ensure
npm run buildpasses standalone - Antivirus deleting
app.exe– some AVs falsely flag one-file executables; whitelist or use directory mode