Hacker News new | ask | show | jobs
by BwackNinja 1387 days ago
You /can/ package python applications into a single binary -- just a zip file prepended with a python shebang. You can do much the same with the base python libraries. No one does it, I presume, because the community is against vendoring dependencies that way, the same way they are against static binaries.

https://bwackninja.github.io/2020/11/25/packaging-python.htm...

3 comments

That doesn’t work for python extensions used by the application. These extensions may include or link to other dynamic libraries.
That doesn't solve anything. You still need a Python interpreter. It's literally just another way to move code around.
If you have a packaging problem approaching any kind of complexity all python packaging is trash.