I’m bothered by the way how Bazel handles Python. While looking for alternatives, I came up with this proof of concept for a portable python distribution: It uses a statically linked musl libc to be independent of whatever host Linux there is. It is actually just a launcher for an embedded Python, such that dlopen(3) still works as intended. In contrast to venv, you can zip this up and deploy it elsewhere. In contrast to containers, this is just a folder. It has not been tested in lots of scenarios, so I’m not quite sure about the limitations yet. It seems to be more widely usable than similar approaches I found. Comments