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

> If you’re on Linux, you should use the system Python provided by your operating system. You will be able to complete most of this tutorial using a non-system Python, but you won’t be able to package your application for distribution to others.

Why not?



Probably because it doesn't actually package the Python interpreter into the executable and relies on a hashbang (ie. `#!/bin/python`) to actually run the bundled source files. Pex [0] does the same thing.

It's a half solution at best, but if you control the infrastructure it does dramatically simplify things like Dockerfiles and other deployment stuff. Not super useful for general distribution IMO.

[0]: https://pex.readthedocs.io/en/v2.1.140/


It's a cool trick, I used it to pack a tool long time ago: https://github.com/HacKanCuBa/passphrase-py/blob/219d6374338...

Basically, u zip the package, then add the shebang on the zip binary. Quite cool and simple! No need for external tools :p


That's a bummer. An app being self-contained is kinda the point of an AppImage IMO, and depending on an external Python (if one even exists) throws a wrench in that.


I ran into ssh cypher issues when I tried to share a packed python project. Worked on my machine but not my colleagues




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

Search: