On Jul 1, 2008, at 8:55 AM, osimons wrote:

>
>
>
> On Jul 1, 2:42 pm, "[EMAIL PROTECTED]"
> <[EMAIL PROTECTED]> wrote:
>> we also do in apache conf:
>>  SetEnv PYTHON_EGG_CACHE /tmp/cache/trac-eggs
>>
>> some of the eggs get extracted there, like accountmanager. webadmin,
>> TracPermRedirect, and trac itself are extracted in python site-
>> packages. some of the eggs are not extracted at all, like
>> TracHTTPAuth.
>>
>> is the python egg cache for the eggs having the zip_safe flag set,  
>> and
>> which need unpacking anyway?
>
> Python has support for reading code files from zip files, so as long
> as the setup compiles and packages compiled versions (.pyc) Python
> does not need anything else. Basically Python needs to extract to
> provide access for non-code resources (like static content and
> templates), or to load compiled C libraries and modules (like .so/.dll
> files).

Actually pkg_resources supports reading the content files directly  
from the zip, we force it to extract to cache by asking for a path to  
the package_data file instead of just getting the content. The reason  
not all plugins show up in the cache is generally only templates and  
htdocs content is stored in this manner, so a plugin with neither will  
operate directly from the egg.

--Noah

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to