On Oct 13, 2007, at 1:47 PM, Marcin Kasperski wrote:
> > Well, I am just making my first experiments with pylons deployment, > and while trying to 'run egg' I immediately got an error like: > > Sat Oct 13 22:25:56 2007] [error] [client 127.0.0.1] OSError: > [Errno 20] Not a directory: '/home/marcink/DEV_hg/myapp/dist/ > mk-0.0.0dev-py2.5.egg/mkweb/controllers' > > raised by default find_controllers (routes/util.py). > > Shouldn't this procedure be rewritten to use pkg_resources? There are a number of other things that have to be changed to make Pylons apps run as zipped eggs. I recall some of the others being: o paste's StaticURLParser/FileApp has to use pkg_resources (for public files) o templating systems must use pkg_resources o l10n gettext catalogs o remove all uses of '__file__' o any library your app uses o probably others I'm missing Ideally this would be supported. I think the biggest concerns with doing so are the potential lack of support with third party libraries. Especially templating systems, which everyone relies on one of. Also for cases where performance is a concern, you wouldn't want something like paste's FileApp retrieving file data from a zip for every request. It could avoid rereading from the zip when responding with 304 not modified, but even with that, that's still a lot of unzipping. A lot of Java app servers do automatically extract .war when they're deployed (though I don't know if that's on by default nowadays). -- Philip Jenvey --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
