Executable Python Zip with C extensions
Question: I have a zip file with a `__main__.py` that executes fine: ./myapp

But inside of this zip, there is a C extension library.so file that must be
loaded but this library.so file is not being found.

If I execute the directory (without zipping it), it executes correctly. So it
appears the C extensions are not supported or is some configuration issue. Any
ideas?

<http://www.python.org/dev/peps/pep-0441/>


Answer: C extensions cannot be loaded from `.zip` libraries. This is a limitation
outside of Python's control.

This already applied to [`zipimport`
support](http://docs.python.org/2/library/zipimport.html):

> Any files may be present in the ZIP archive, but only files .py and .py[co]
> are available for import. ZIP import of dynamic modules (.pyd, .so) is
> disallowed.

