On Oct 13, 2004, at 19:47, gilleain torrance wrote:

however, it turns out that if you copy the entire (python) source tree of Scientific - IE:

"ScientificPython<version>/Scientific/"

into

"/Applications/PyMolX11blahHybridetc/py23/lib/python2.3/site-packages"

Apparently you are using the X11 hybrid version for MacOS. This comes with its own Python installation, but there doesn't seem to be a way to use its Python interpreter separately, outside of PyMOL, so the standard installation script for Scientific Python (or any other package) cannot be used.

There are three solutions:

1) The one you used. Its main disadvantage is that you don't get the C modules of Scientific Python, i.e. the netCDF interface.

2) Install Scientific Python with another Python 2.3 installation (i.e. the one that comes with MacOS 10.3, or the one from fink) and copy site-packages/Scientific from that installation to the the place you already discovered.

3) [Hypothetical, I did not test this]. Modify the setup.py in such a way that it does the buiild and install steps without requiring command line parameters, then run it using the "run" command from inside PyMOL.

I used solution 1).

hopefully! Anyway, there might be a better way, but this works. One tiny glitch is the change from Numeric to numarray. This can be 'fixed' ('hacked') by using *cough*perl*cough*:

perl -i -p -e 's/Numeric/numarray/g' *.py */*.py

which should substitiute all instances of 'Numeric' with 'numarray'.

But the PyMOL hybrid distribution comes with Numeric, not numarray. Or has this changed recently? Mine is 0.95.

For daily use, I prefer to build PyMOL from source under the Python that comes with fink. In that way, I have all my python packages available for PyMOL scripts. In fact, I had almost forgotten that I still had the X11 hybrid on my machine.

Konrad.
--
---------------------------------------------------------------------
Konrad Hinsen
Laboratoire Léon Brillouin, CEA Saclay,
91191 Gif-sur-Yvette Cedex, France
Tel.: +33-1 69 08 79 25
Fax: +33-1 69 08 82 61
E-Mail: hin...@llb.saclay.cea.fr
---------------------------------------------------------------------


Reply via email to