[Python-Dev] magic in setuptools (Was: setuptools in the stdlib)

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 21 10:57:59 CEST 2006


Martin v. Löwis wrote:

> Some libraries (not necessarily in Python) have gone the path of
> providing a "unified" API for all kinds of file stream access,
> e.g. in KDE, any tool can open files over many protocols, without
> the storage being mounted locally.

Maybe a compromise would be to provide an extended
version of open() that knew about zip files. This
could be a stand-alone facility to complement zip
importing, and needn't be tied to distutils or
setuptools or anything like that. Code which finds
things using module __file__ attributes would work
exactly the way it does now as long as it used the
special open().

--
Greg


More information about the Python-Dev mailing list