Describe how to package executable with Nuitka #2165
Replies: 6 comments 9 replies
|
Hi @mrhanCH! |
Try my command line, I have tested that it can package and run normally, but the packaging speed is particularly slow. nuitka --mingw64 --standalone --show-progress --nofollow-imports --output-dir=out -o test test.py |
|
Do you have a test demonstration, I tried but it seems that a lot of environments are missing when packaged from nicegui import ui
ui.label(text='233')
ui.run(native=True, reload=False)import subprocess
cmd = 'python -m nuitka --mingw64 --standalone --show-progress --nofollow-imports --output-dir=out test.py'
subprocess.call(cmd)Here's my code |
|
Additionally, if you do not wish to use |
|
my nuitka+nicegui single executable build on ubuntu 24.04 is 56MB. nicegui under site-package has 50MB, uvloop is 17MB from fastapi. for a simple fastapi nuitka package it's 27MB. I don't know how yet, but I believe these sizes can be further trimmed. |
|
Reviving this — sorry for the long silence. With #6009 hitting the same wall, we'll add a Nuitka section to the deployment docs covering the working invocation ( |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The current Pyinstaller packaging method carries the risk of being decompiled, even if key encryption is used, it is useless. Compared to using Nuitka packaging, it is a safer way. Will the Nuitka packaging method be introduced in the future?
All reactions