News for hackers. Stuff that matters.
Re:Ask HN: Best practice to distribute private Python CLI to... by __d on Monday January 27, 2025 @09:14PM (#42848180)
I use PyInstaller to distribute a Qt5-based GUI app, and some associated CLI tools. It's fairly easy to configure, and works out fine.
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

Re:Ask HN: Best practice to distribute private Python CLI to... by philomath_mn on Monday January 27, 2025 @11:24PM (#42848809)
How big is your distribution file? I tried this but my project had numpy and pandas and the distributable was like 350 MB!
Re:Ask HN: Best practice to distribute private Python CLI to... by __d on Tuesday January 28, 2025 @12:59AM (#42849306)
I have Qt, but not numpy or pandas. My executable is 40MB (still big).