A new tool called Superlinker has been developed, allowing developers to combine executables and shared libraries into larger products. This tool can be used to build self-contained Python distributions from off-the-shelf packages, without requiring any source modifications. Superlinker is a Rust-based compiler that lifts ELF ET_DYN objects into an abstract intermediate representation, which can then be lowered back into an executable or shared library.
Source: https://github.com/whitequark/superlinker