News for hackers. Stuff that matters.
Re:Use `Python -m Pip` by SAI_Peregrinus on Wednesday July 20, 2022 @10:04PM (#32174939)
`pyinstaller --onefile <script.py> [secondscript.py] [...]`

Statically links all the dependencies and the Python interpreter. Other machine can just run the executable, no need to set up a venv+pip.

Of course the binary is huge, but IME it works. Unfortunately it can't cross-build, so you need a VM or multiple machines set up with the dev environment to run pyinstaller for each OS.

There are no comments on this comment yet.