On May 28, 2015, at 12:44 PM, Donald Stufft wrote:
Pex would be improved by having native support for importing .so’s from within a zipfile via zipimport. It would also be improved by having good, built in support for extraneous resources in the stdlib too.
Completely agree on both points. Having an API for importing .so's from a zip would be really useful. Today that can be implemented as "copy to tempdir" and tomorrow the implementation could optionally dlopen_from_memory() without any client code changing.
Right, it would be great to get it built into Python itself, but I consider that less important than getting the critical pieces into Python. If those pieces are there then we can iterate outside of the standard library and try different approaches to *building* such a file, and eventually take a look at the landscape and bless one approach (or not, if we don’t want to).
Sounds good to me!