3 ms·
Replacing pyinstaller with 100 lines of code
- mattbillenstein 2y agoNuitka does something like this too, but in my experience does not handle signals as well as PyInstaller. Do you do extract, fork process, cleanup? Does it handle signals sent to the extract process as if they were sent to the actual program?
- tusharsadhwani 2y agoYup, it's extract, fork process, cleanup. It's also fairly easy to extend the project to create installers and let the user choose a path to extract in, and I plan on doing that. I also believe that sending a signal to the parent will be propagated down, but I haven't tested it.
- _8j50 2y agoThe python project itself lets you download embeddable python, you don't need to get it from random sources. It works great, you can install all your pip packages, zip it backup and it just works.
- bheadmaster 2y ago> The python project itself lets you download embeddable python Only for Windows: https://www.python.org/downloads/release/python-3123/ https://www.python.org/downloads/release/python-3123/
- nomial 2y agoImportant to note that PyOxidizer, the tool that gets a special mention at the end of this blog post, is currently in a zombie state and not getting updates [1]. So alternatives in this space are extremely welcome! [1] https://gregoryszorc.com/blog/2024/03/17/my-shifting-open-source-priorities/ https://gregoryszorc.com/blog/2024/03/17/my-shifting-open-so...
- Vuizur 2y agoThere is also PyApp, which I think is really promising. The docs there are not that comprehensive yet and maybe a bit confusing, but the packaged programs usually work out of the box, unlike with pyinstaller.