[Zope3-dev] Re: Distributing Zope as a ZIP file
Paul Everitt
paul at zope-europe.org
Thu Nov 11 03:38:25 EST 2004
IIRC, there was a discussion about this a year or two ago on this list.
Guido ultimately shot down the idea, saying it would be realistically
impossible to import page template files from within a zip file.
--Paul
Garrett Smith wrote:
> Lennart Regebro wrote:
>
>>Garrett Smith wrote:
>>
>>>Is it possible to distribute the Zope files needed for an
>>>application in a single ZIP file?
>>>
>>>I'm running into a problem with the natively compiled libraries,
>>>which are assumed to reside in the nested package hierarchy. AFAIK,
>>>native libraries can't live in ZIP files.
>>
>>If you mean PKZip, sure they can.
>
>
> Aren't PYDs just shared libraries? I'm not aware that Windows knows how
> to loaded libraries from a ZIP file?
>
> The native libs are named to be stored in a flat directory (e.g.
> _zope_proxy_proxy.pyd). But the Zope code assumes they're in the package
> hierarchy. I could see something like this:
>
> try:
> from zope.proxy._zope_proxy_proxy import *
> except ImportError:
> from _zope_proxy_proxy import *
>
> I don't know if this is a standard pattern or just a hack.
>
> -- Garrett
More information about the Zope3-dev
mailing list