
On 12 Jul 2011, at 22:02, Terry Lang wrote:
I use Chimera as a back end library for a bunch of my code. I occasionally run into a function that an external library, scipy for example, has already implemented. I have found the chimera flag that allows me to import python libraries for use. However, because numpy is already distributed with Chimera, importing libraries that depend on numpy is almost _impossible_.
What I do is install such third-party modules from source, using Chimera's Python. Here's the script I use under MacOS: #!/bin/bash chimera_py=/Applications/Chimera.app/Contents/Frameworks/ Python.framework/Versions/2.7 export PYTHONPATH=$chimera_py/lib/python2.7 export DYLD_LIBRARY_PATH=$chimera_py $chimera_py/bin/python2.7 $* Just use this instead of the "python" command to run the setup.py coming with various Python packages. A similar approach should work under Linux, for Windows I don't know. Konrad. -- --------------------------------------------------------------------- Konrad Hinsen Centre de Biophysique Moléculaire, CNRS Orléans Synchrotron Soleil - Division Expériences Saint Aubin - BP 48 91192 Gif sur Yvette Cedex, France Tel. +33-1 69 35 97 15 E-Mail: research at khinsen dot fastmail dot net ---------------------------------------------------------------------