[Python-Dev] Another approach for the import mechanism
Gustavo Niemeyer
niemeyer@conectiva.com
Fri, 6 Dec 2002 00:11:02 -0200
> btw for single packages (once you can put zipfiles in sys.path or
> __path__) you can achieve this with __path__
>
> package/
> __init__.py
> __path__[0] = os.path.join(__path__[0],'package.zip')
>
> package.zip
That would kill the __init__.py that could be inside package.zip,
right? One could leave package.zip's __init__.py outside it, and
hack it as shown above, but it'd be great if this scheme was just
an option for setup.py (--compress-packages). Otherwise the scheme
must be prepared by the developer, not by the packager.
--
Gustavo Niemeyer
[ 2AAC 7928 0FBF 0299 5EB5 60E2 2253 B29A 6664 3A0C ]