News for hackers. Stuff that matters.
Re:Python GUIs by pdonis on Wednesday June 14, 2023 @03:25PM (#36331233)
I have found PyInstaller [1] to work well for packaging everything into a single ZIP file that unzips to a folder with an executable binary and all accompanying files (or even a single EXE file that self-extracts when run, but that increases startup time). It knows how to package PyQt and its associated Qt libraries (or PySide, which I actually prefer) so that they can be shipped with your application.

[1 https://pyinstaller.org/en/stable/

Re:Python GUIs by igortg on Wednesday June 14, 2023 @03:35PM (#36331374)
Yeah, PyInstaller is the best thing out there if you need to bundle a complex Python app into an executable, with cx_Freeze not far behind.

But it's still considered challenging when you compare with any other compiled language, where you can get an executable out of the box. I ship Python desktop apps at work and it's remarkable how much code we accumulated over the years just to deal with the "interpreter in bundled/exe mode".

Re:Python GUIs by mherrmann on Thursday June 15, 2023 @06:42AM (#36338616)
Re:Python GUIs by PrivateButts on Wednesday June 14, 2023 @04:08PM (#36331829)
PyInstaller always seems to tick off our org's MalwareBytes, causing it to break in new and interesting ways but only after a good amount of development hours have been sunk into the project. Recently I've been using Nuitka to package python apps. It would be nice if PSF would adopt/develop an official way to do this.