Re:Nuitka: a Python compiler written in Python
by nyanpasu64 on Thursday June 17, 2021 @04:10PM
(#27544018)
The OpenBLAS version of NumPy (from pip rather than conda), plus PyQt5, can fit in around 100 megabytes uncompressed on disk for a Win64 binary. However I no longer recommend writing number crunching apps in Python, since you don't have thread-based parallelism due to the GIL, and have to awkwardly shuffle data across processes. (Last time I tried multiprocessing, some data can only be sent to workers on Linux using fork-based worker spawning, and not on Windows which lacks fork and requires pickling.)
Re:Nuitka: a Python compiler written in Python
by doubleunplussed on Thursday June 17, 2021 @07:51PM
(#27545774)
If the number crunching is numpy-heavy, multiple threads absolutely can use real thread-based parallelism. C extensions like numpy release the GIL and so can run in parallel.
Re:Nuitka: a Python compiler written in Python
by mherrmann on Thursday June 17, 2021 @11:13AM
(#27540443)
Thanks! Regarding your question: fbs uses PyInstaller under the hood, so the binaries should be pretty similar in size.
Re:Nuitka: a Python compiler written in Python
by gota on Thursday June 17, 2021 @11:10AM
(#27540416)
BTW the error tracking described in the Manual sounds great. Are you affiliated to Sentry in any way?
Re:Nuitka: a Python compiler written in Python
by mherrmann on Thursday June 17, 2021 @11:14AM
(#27540459)
No affiliation whatsoever. If you want to use Sentry for almost free, you can use my (old) scripts for deploying it to a $5 / month VPS: https://github.com/mherrmann/sentry-self-hosted
Question - do you have any comparisons on the size of the resulting distributed executable compared to Nuitka, pyinstaller?
This is the issue I've faced. Nontrivial programs (that, say, import pandas, numpy, selenium) are huge, implying a ~250MB+ download for the user - and then maybe up to 1GB in disk when its all unpacked.