News for hackers. Stuff that matters.
Re:Python Best Practices for a New Project in 2021 by codethief on Monday July 05, 2021 @08:04AM (#27737071)
> There isn’t a great way to pass around a single executable or installer for a Python app.

Have you tried Nuitka or mypyc? (Haven't tried them myself but I've heard very good things about Nuitka.)

Re:Python Best Practices for a New Project in 2021 by nerdponx on Monday July 05, 2021 @08:21AM (#27737206)
Also Briefcase: https://beeware.org/project/projects/tools/briefcase/. "Convert a Python project into a standalone native application."
Re:Python Best Practices for a New Project in 2021 by stult on Monday July 05, 2021 @10:38AM (#27738445)
Personally I have not. I have only had one particularly weird use case where I really needed to deliver a Python executable alongside an Electron app, and made it work with Pyinstaller. We’re actually reworking things to use Pyodide to compile the Python to WASM so we don’t have to deliver any separate Python code at all. It’s a real Rube Goldberg machine of an application, but we had a lot of weird constraints we had to meet (eg, we couldn’t use sockets to communicate between Python and Node, so had to package the Python as an executable). It works beautifully but it was a mess to get running.