I would like to find a way to deploy Python programs as an executable on Debian where I would be able to bundle:
- the dependencies and third party libs
- the code that might need to be installed on the host machine. Typically some libs in
Pythonlikepiloworsnappyare depending on shared libraries within/usr/lib
I think you can achieve (1) and (2) separately. To achieve (1), I believe that there exists different ways to ship virtualenv, and for (2) I've seen some people using Docker image or Ansible to install tool/module on the host OS.
To me, it feels that by having 2 systems to achieve (1) and (2) there is a risk to have them unsynced. It feels very error prone to think that if someone adds an external dependency in its Python program he might also has to change a Docker image. So I'm wondering if there something that does both.