olivierkes / manuskript

A open-source tool for writers
http://www.theologeek.ch/manuskript
GNU General Public License v3.0
1.78k stars 236 forks source link

why not use Nuitka instead of Pyinstaller? #1292

Open ExtraMobs opened 6 months ago

ExtraMobs commented 6 months ago

why not use Nuitka instead of Pyinstaller? It avoids many problems related to importing because the script behaves exactly as written, in addition to optimization, which gives about 20% to 50% more execution speed, allowing for heavier resources in the future.

TheJackiMonster commented 6 months ago

Actually, I didn't know of it yet. Seems like a great option to easily build a compact binary. I'm not sure whether all spellcheckers get bundled properly without issues since they are usually loaded during runtime. But it might make sense to switch to it from PyInstaller.

Do you know whether Nuitka solves the issue that binaries get false flagged as malware on Windows?

ExtraMobs commented 6 months ago

When I compile with Nuitka, Windows rarely reports malware, a guess would be when the binary points out suspicious heuristics for Windows, common binary patterns among viruses, I'm not surprised that Pyinstaller reports this on Windows, after all Pyinstaller is well known, many malware and viruses must use it, so Windows flagging some *.pyd as untrustworthy doesn't surprise me much depending on the library.

ExtraMobs commented 6 months ago

I didn't find anything about grammar checkers in the repository, how does that work? Because if it is a relative import module (sometimes you import it and sometimes you don't), Pyinstaller, when scanning your code, will miss the module and not find it, as I already accused here.