Lets keep this on the list.. On 7 May 2007 at 17:25, Andrew Wilson wrote:
> > are these all running as part of the same process, or are you just > > concerned > > about having two versions of CherryPy installed? > > > They aren't, at present, running at all; I'm trying to figure out how to > deploy them. Ok, so are you ultimately trying to make them all run as part of a single process? > I have two versions of CherryPy installed; setuptools allows > that fairly simply. But, so far as I know, Paste Deploy runs all of the > configured applications in one Python process, hence all of the applications > will be running in one Python process. I think that's the way that WSGI > works. My understanding is that paste-deploy will load the 'applications' you've specified in the .ini file, and those 'applications' will in-turn load modules according to their own requirements. So, if your .ini file references a component that uses some part of CherryPy, then that component will load the appropriate version of CherryPy at runtime. Have you tried it? > > So...is this just a limitation of using Paste to collect a number of WSGI > applications into a server? I don't think its possible to load two different versions of CherryPy in a single process. Maybe it's possible with lots of hacking import. But this isn't an paste specific situation, it would apply to any Python application that uses setuptools. If you want to run two different versions of a CherryPy component in the same process, maybe you should check with the setuptools folks to see if that's possible in ANY Python application. > I must make sure that all the applications can > run at one package version? Or is there some kind of known solution to allow > the WSGI appliciations to be deployed by Paste into multiple Python > processes, so each one can require its own versions of the software? Paste-deploy uses a .ini file to configure the root WSGI application object at runtime. You can create two or more .ini files and run them in different processes. You can also hand-create your WSGI application stack as well. -- Brad Clements, [EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com AOL-IM or SKYPE: BKClements _______________________________________________ Paste-users mailing list [email protected] http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users
