zipimport (.pyd & .so) files.

King animator333 at gmail.com
Fri Jul 9 12:36:11 EDT 2010


Hi,

The 'zipimport' modules can only import (.py & .pyc) files from a zip
file and doesn't support importing .pyd & .so files. Recently I was
examining the code of Py2Exe (python package deployment tool) and I
have found that it is using a module 'zipextimporter' that can import
dlls(.pyd) modules from a zip file.
It is based on the concept of loading library form memory. You can
find out more about here:
http://www.joachim-bauch.de/tutorials/loading-a-dll-from-memory/

It's strictly for windows platform. I would like to know from expert
python users and linux programmers, how we can achieve similar
functionality on linux platform? I do have limited c/c++ skill sets
but I would love to give a try.

Cheers

Prashant




More information about the Python-list mailing list