Best place for libraries
Hello I'm migrating from Zope 2.6 to 2.7 with an INSTANCE_HOME. In the previous setup, we had: Zope lib python <some shared libraries> Products <standard products plus some from external sources plus some developed in-house> java <other Java packages comunicating via xml-rpc> Now we have a SOFTWARE_HOME and an INSTANCE_HOME and I'm not sure where is the best place for each directory. Our own products (which are specific for the application) surely go under INSTANCE_HOME. But CookieCrumbler, by example, as an external product, should be under Products in SOFTWARE_HOME or INSTANCE_HOME? What about some shared libraries not related explicitely to Zope (like HyperText, an OO HTML generator)? Should be on SOFTWARE_HOME\lib\python? or maybe outside the Zope dir, in lib\site-packages inside the Python install? I know there are many ways to do this, I'm looking for some "best practices" or something like that. Gabriel Genellina Softlab SRL
On Thu, Mar 17, 2005 at 08:03:18PM -0300, Gabriel Genellina wrote:
Hello
I'm migrating from Zope 2.6 to 2.7 with an INSTANCE_HOME. In the previous setup, we had:
Zope lib python <some shared libraries> Products <standard products plus some from external sources plus some developed in-house> java <other Java packages comunicating via xml-rpc>
Now we have a SOFTWARE_HOME and an INSTANCE_HOME and I'm not sure where is the best place for each directory. Our own products (which are specific for the application) surely go under INSTANCE_HOME. But CookieCrumbler, by example, as an external product, should be under Products in SOFTWARE_HOME or INSTANCE_HOME?
I typically put them all in INSTANCE_HOME/Products, not distinguishing between third-party and in-house.
What about some shared libraries not related explicitely to Zope (like HyperText, an OO HTML generator)? Should be on SOFTWARE_HOME\lib\python? or maybe outside the Zope dir, in lib\site-packages inside the Python install?
I do the latter. -- Paul Winkler http://www.slinkp.com
What about some shared libraries not related explicitely to Zope (like HyperText, an OO HTML generator)? Should be on SOFTWARE_HOME\lib\python? or maybe outside the Zope dir, in lib\site-packages inside the Python install?
I do the latter.
Me too, but on boxes that aren't mine alone I compile a Python especially for Zope. Depending on circumstances, I might even compile a Python especially for a specific Zope version. So "lib/site-packages inside Python" could mean: <zope-user>/lib/python/2.3/site-packages/... or <zope-user>/zopes/py234/lib/python2.3/site-packages/... -- Jean Jordaan http://www.upfrontsystems.co.za
Paul Winkler wrote:
I typically put them all in INSTANCE_HOME/Products, not distinguishing between third-party and in-house.
You can also google for "PRODUCTS_PATH" to find another place you can put products that are shard between multiple Zope instances. cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (4)
-
Chris Withers -
Gabriel Genellina -
Jean Jordaan -
Paul Winkler