As title says, can I create single file executable with nuitka? I tried --portable
and --standalone
option but they does not seem to work. And can anyone please explain me what is the --recurse-all
option? And if you have some other recommendations please tell me. I dont want to use pyinstaller because its too slow to start my app. Thanks for any response.
Nuitka (pronounced as /njuːtkʌ/) is a source-to-source compiler which compiles Python code to C source code, applying some compile-time optimizations in the process such as constant folding and propagation, built-in call prediction, type inference, and conditional statement execution.
This seems to work on my side with Qt bindings:
Nuitka-0.5.27/bin/nuitka --standalone --recurse-all --recurse-on --recurse-directory --show-progress --show-modules --plugin-enable=qt-plugins --python-version=2.7 --remove-output --output-dir=nuitka-build main.py
You will end up with "main.dist" directory with all the dependencies and the binary "main.exe".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With