Implement zipimport module


See also http://lists.ironpython.com/pipermail/users-ironpython.com/2006-June/002457.html
PEP 273 gives the initial specification.
Python library reference gives the documentation of the current implementation.
Closed Mar 10, 2012 at 6:51 AM by jdhardy
Released in IronPython 2.7.2


wrote Jun 23, 2006 at 11:28 PM

We are locking down on V1, and we will not be able to get to this in V1. We will revisit this later. Thanks for the report.

primco wrote Mar 12, 2007 at 7:13 AM

the file test_zipimport.py in the standard CPython distribution may help test compaitibilityhttp://www.koders.com/python/fidE7FE7D6953FB6F810BA56C90C8D0930FDE6BC783.aspx

wrote Sep 14, 2007 at 9:48 PM

Requires zlib

fuzzyman wrote Nov 15, 2008 at 4:16 PM

zipimport is needed for setuptools - which is needed for projects like Turbogears. Setuptools is increasingly becoming the standard way of distributing Python packages - so not being able to use it with IronPython is quite a problem (Jython guys have got setuptools compatibility ;-)

fuzzyman wrote Nov 18, 2008 at 11:14 AM


The test version of zipimport uses importlib and so is not that helpful. More helpful is the pure Python version that Guido implemented for the AppEngine.


Missing is directory metadata cache support that setuptools needs, but that should be trivial to add.

It looks like zlib support is also needed for setuptools.

slide_o_mix wrote Dec 20, 2011 at 3:20 PM

jdhardy wrote Dec 21, 2011 at 4:11 AM

Fixed in 9c479d1/1d6ffca.