News for hackers. Stuff that matters.
Re:Ask HN: Best practice to distribute private Python CLI to... by hack_fraud13 on Monday January 27, 2025 @11:18PM (#42848778)
I've tried this but never got the PyInstaller deployment process down smooth enough for my taste. Even for small apps, I end up rewriting in C# to compile executables with if I need to deploy to people who don't use code. With PyInstaller, since you have to package the Python interpreter the .exe always ends up too large and slow for my taste (especially since I usually compile with --onefile. I'm wondering how you do it, if you use onefile or have some better way to run PyInstaller so the final exe is smaller or faster.
Re:Ask HN: Best practice to distribute private Python CLI to... by __d on Tuesday January 28, 2025 @01:16AM (#42849400)
I use -F (--onefile).

It's certainly not fast to start, but in my case, it's not a quick one-and-done type thing, so I don't mind too much