On Thu, Feb 28, 2013 at 10:14 PM, Francis Bolduc <email@example.com
The Python interpreter can read zip files.
This is what I do myself. I zip the entire Python library and embed it inside my application. Then I extract it at run-time in a temporary directory, then I point the Python interpreter to it using Py_SetPath.
I thought it would be possible to do without the extracting to a temporary directory, i.e. doing it all in-memory...
Not at all.
Extending and embedding and distributing Python within an application seems to be the most common use case. Once you know what to do, it is actually very simple. But it is not covered in the documentation, nor are there any examples. I only succeeded because I actually read the CPython source code.
Maybe, some day, somebody will feel generous and publish an example of how to do that. Until then, this is the best place to ask questions.