-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[suggestion] Upgrade to Nuitka instead of PyInstaller #68
Comments
You can make one-time-use applications with nuitka similar to pyinstaller with the --onefile option and you should be able to include any type of file as well. |
I've tested it locally: python3.11 -m nuitka --enable-plugin=tk-inter --enable-plugin=pyqt5 --include-data-dir=$HOME/.local/__yolo_v3_qr_detector/=__yolo_v3_qr_detector/ --onefile src/extract_otp_secrets.py Nuitka is working, however the performance difference to PyInstaller is not very big for
|
The build times of pyinstaller and nuitka are very different: Nuitka is about 30x slower to build, 36min instead of 1min. Measured on my i7-4500U 1.8GHz (Haswell, 4th Gen) computer:
Currently, it is not feasible to use Nuitka for building. |
That difference is wild, could it be possible you're missing some flags that speed things up, for example: If you need me to try and make a nuitka build and see how long it takes, just shoot me a message! |
I rerun it (did not clear the caches):
Cleaned caches, but not ccache:
So, it looks much better. I get some warnings:
|
A try with clang:
|
Here's some more flags you could use: Onefile: |
The text was updated successfully, but these errors were encountered: