Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: