which one is better running zope with it own python or with the OS python
Dear All, I have a Linus Redhat OS with zope server running on it. Firstly, how do I know if zope is using it own python or is using the python that come with the OS. Secondly, which one will give me optimum performance? that is running zope with it own python or with the OS python. And lastly, how do i configure zope to either use it own python or OS python. Thanks and God bless U all. ===== Hamzat kamaldeen Ishola Dnet Systems Limited. 223 Ikorodu Road, Lagos. Nigeria. 234 1 7749381, 234 08033011305 --- If Mistake is an opportunity to see better,�then do not fear it, but ready to admit it. NOTE: Sentimental decisions are not mistakes but failures !!!� __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
From: "Hamzat Kamal" <k_hamzat@yahoo.com>
I have a Linus Redhat OS with zope server running on it. Firstly, how do I know if zope is using it own python or is using the python that come with the OS. Secondly, which one will give me optimum performance? that is running zope with it own python or with the OS python.
One thing I have noticed is that the pythons that come with the OS's or in precompiled packages have a tendency to fail on CR/LF endings, while the default compile of python are happy with them. I have absolutely no idea how this happens, because I can't find any settings that change this behaviour, so it's all very strange. I therefore always end up compiling python from scratch, since it's so trivial anyway.
Hamzat Kamal writes:
... Firstly, how do I know if zope is using it own python or is using the python that come with the OS. You go to "Control_Panel --> Debug Information" and look for "sys.path".
It lists the directories, Python looks for modules and packages. These include the Python library. When you see that the Python library is used from inside your Zope installation, you use Zope's Python. When it comes from "/usr/lib" or "/usr/local/lib", the standard Python is used.
Secondly, which one will give me optimum performance? that is running zope with it own python or with the OS python. And lastly, how do i configure zope to either use it own python or OS python. Generate your own Python from sources.
Binary distributions cannot be as much optimized as objects generated in your environment. With SuSE Linux 7.3, I got a 50 % improvement (17 k pystones versus 11 k) when I forgot about the distributed Python and generated my own from the sources. Dieter
participants (3)
-
Dieter Maurer -
Hamzat Kamal -
Lennart Regebro