[IronPython] Feature Request: Zipimport builtin module

Michael Foord fuzzyman at voidspace.org.uk
Sun Nov 16 16:59:08 CET 2008

Jeff Hardy wrote:
> I believe there also needs to be a complete implementation of zlib as
> well, but that might just be for easy_install (which is still pretty
> important). The zlib from FePy is missing decompressobj, which is
> nasty to get working with a DeflateStream.

Yep. I have a 'mostly complete' implementation of zipimport in pure 
Python (would need some work as the caching is not compatible with 
setuptools but should be easy to fix). This depends on zipfile, which as 
you say uses zlib.decompressobj.

It should be possible to replace the use of zipfile with direct use of 
the .NET APIs. Both zlib and zipimport should really be available for 
IronPython though... :-)


> -Jeff
> On Sat, Nov 15, 2008 at 10:17 AM, Michael Foord
> <fuzzyman at voidspace.org.uk> wrote:
>> Hello guys,
>> In order to use projects like Turbogears with IronPython (I'm at a
>> Turbogears sprint) we need setuptools to work. In order for setuptools to
>> work we need zipimport - which is a builtin module in Python.
>> The Jython guys have setuptools working... (only the Genshi package is
>> blocking Turbogears from working on Jython.)
>> Having setuptools working on IronPython is becoming increasingly important
>> as it becomes the standard distribution and installation mechanism for
>> Python packages.
>> I'm looking at a pure Python version of zipimport (provided by Guido for use
>> on the AppEngine). It doesn't work unmodified but should be easy enough to
>> get working as a stopgap measure. I've added a comment to codeplex issue
>> 391:
>> http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=391
>> Michael Foord
>> --
>> http://www.ironpythoninaction.com/
>> _______________________________________________
>> Users mailing list
>> Users at lists.ironpython.com
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


More information about the Ironpython-users mailing list