News for hackers. Stuff that matters.
Re:Single binary executable packages by hathym on Wednesday March 02, 2022 @02:20PM (#30531596)
> Python -- you're already covered, just read the zipapp documentation;

pyinstaller --onefile will create a signle file executable with an embedded python runtime and libraries (no need to install python) https://pyinstaller.readthedocs.io/en/stable/usage.html

Re:Single binary executable packages by mianos on Wednesday March 02, 2022 @08:21PM (#30535903)
I came here to say this but instead I am upvoting this. Pyinstaller is awesome.

Another thing to add, if you use run pyinstaller in docker with an old base image and copy the executable out, you can make a pyinstaller executable that will run on a vast range of machines due to runtime backward compatibility. I have single executable python apps that run fine on redhat, debian, ubuntu and suse.