[PyMOL] Using a seperate python installation

2005-10-07 Thread Jules Jacobsen

Hello All,

Can someone tell me wether it is possible to use a stand-alone python 
installation alongside the latest PyMol releases? I have a few things 
set up in my main python installation which an older (python free) 
version of Pymol was happy to use, having installed the newer version it 
uses it's own version of python. Is this possible to specify in the 
.pymolrc? If so what do I write? I've tried the obvious PYTHON_PATH = 
'C:\\Python24\\'


Many thanks,

Jules



Re: [PyMOL] Using a seperate python installation

2005-10-07 Thread Peter Adrian Meyer
 Can someone tell me wether it is possible to use a stand-alone python
 installation alongside the latest PyMol releases? I have a few things
 set up in my main python installation which an older (python free)
 version of Pymol was happy to use, having installed the newer version it
 uses it's own version of python. Is this possible to specify in the
 .pymolrc? If so what do I write? I've tried the obvious PYTHON_PATH =
 'C:\\Python24\\'

If I'm understanding you correctly, you'd like to use a currently
installed python with a newer version of pymol.  It sounds like you may
need to re-install the new pymol (possibly rebuild, with the new python
paths (include/lib) set to your system version of python).
There's always the standard sys.path workaround (start new version of
pymol, add system python lib directory to sys.path, import your other
modules and check them to make sure they still give the same
results)...but that may cause version conflicts between pymol/system
python module imports (it might not too, I've never tried it).

Hopefully somebody more farmiliar (sp?) with python/pymol on windows (I'm
assuming you're using that from the c:\python24 reference) has a better
solution than this.

Pete

Pete Meyer
Fu Lab
BMCB grad student
Cornell University




RE: [PyMOL] Using a seperate python installation

2005-10-07 Thread Warren DeLano

There is always this trade off between (A) shipping PyMOL with its own
Python, to guarantee reliable installation, or (B) using a system PyMOL
install, for enabling integration and extensibility.  One of PyMOL's
advantages is that you aren't locked in to either approach, embedding or
extension -- the program supports both.
 
The challenge with (B) is that installed Python versions vary from
system to system, so recompilation of PyMOL is the only sure way to
guarantee binary compatibility between PyMOL's compiled code and the
system Python install.  

Setting PYTHONPATH (note no underscore) only works if the modules you
import are native Python (with no binary C-language dependencies).

Cheers,
Warren

--
Warren L. DeLano, Ph.D. 
Principal Scientist

. DeLano Scientific LLC  
. 400 Oyster Point Blvd., Suite 213   
. South San Francisco, CA 94080 USA   
. Biz:(650)-872-0942  Tech:(650)-872-0834 
. Fax:(650)-872-0273  Cell:(650)-346-1154
. mailto:war...@delsci.com  
 

 -Original Message-
 From: pymol-users-ad...@lists.sourceforge.net 
 [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of 
 Jules Jacobsen
 Sent: Friday, October 07, 2005 5:07 AM
 To: 'pymol'
 Subject: [PyMOL] Using a seperate python installation
 
 Hello All,
 
 Can someone tell me wether it is possible to use a 
 stand-alone python installation alongside the latest PyMol 
 releases? I have a few things set up in my main python 
 installation which an older (python free) version of Pymol 
 was happy to use, having installed the newer version it uses 
 it's own version of python. Is this possible to specify in 
 the .pymolrc? If so what do I write? I've tried the obvious 
 PYTHON_PATH = 'C:\\Python24\\'
 
 Many thanks,
 
 Jules
 
 
 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, 
 discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 PyMOL-users mailing list
 PyMOL-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pymol-users