[Python-Dev] Another approach for the import mechanism

Samuele Pedroni pedronis@bluewin.ch
Fri, 6 Dec 2002 00:31:45 +0100


>
> If I want to provide packaged RPMs for small systems, I'd like
> that *every* module/package which can be installed optionally, be
> packaged inside a compressed file. There are real usage for
> that right now.
>

Not that I exactly understand what you want, but it seems that some logic in
site.py, such that all *.zip found e.g. in site-archives (and similars)
(thought as equivalent and parallel to site-packages) are added to sys.path,
would solve your problem.

You either install a dir hiearchy somewhere or an archive there.

I insist that supporting compressing single modules seems YAGNI and requiring
too much complexity.

regards.