[MATRIX-SIG] PyGist
Phil Austin
phil@geog.ubc.ca
Wed, 18 Feb 1998 08:47:59 -0800
>>>>> "DS" == Dave Stinchcombe <dars@soton.ac.uk> writes:
DS> Hi , I'm trying to compile Python 1.5 with NumPy-1.0b3,
DS> NumPyLib-1.0b2, and pygist-1.2, having first installed
DS> yorick-1.4. I have made sure that I don't compile for
DS> Readline.
and (much context deleted):
>>>>> "Paul" == Paul F Dubois <dubois1@llnl.gov> writes:
Paul> I don't need any hints. I'm working on this. We are going to
Paul> try to release all our modules in a separate format, not as
Paul> part of the source tree as they are now. My first goal is
Paul> NumPy 1.0, which I expect to release the first of next week
Paul> including a Windows binary.
as an interim measure, people are invited to try my standalone install
of pygist, which I've tested on Solaris and Linux. It uses Konrad
Hinsen's compile.py and install.py to winkle out your --prefix and
--exec directories and fetch Makefile.pre.in and build gistCmodule.so
and arrayfns.so. It is missing some of
the demos, which I need to tweak to remove PDB dependencies. I'm up
against a grant proposal deadline, so this won't happen this week, but
feel free to try it and report your success/failure.
Here's the Readme, to be found with the rest of the package at:
http://www.geog.ubc.ca/~phil/python/gist.html
_________________________________________________________
This README explains how to install gist as
a dynamically loadable library on Linux and Solaris
(and presumably other Unices).
You should have received it as part of the
tar file:
http://www.geog.ubc.ca/~phil/python/ubcgist.tar.gz
Installation requires that you have installed Python 1.5,
Konrad Hinsen's distribution of Numerical Python and gist/yorick. See
http://www.geog.ubc.ca/~phil/python/gist.html for the location of these
packages.
To make the library:
1) uncompress and untar ubcgist.tar.gz. The resulting gist directory
contains this README file, C code for gistCmodule and arrayfnsmodule,
gistdemo.py (to test the plotting package) and a subdirectory
called graphics, which contains gist.py among other things.
2) cd gist
3) create the file Setup, using either Setup.linux or Setup.solaris
as a template. You need to supply the location of the Yorick
include files (-I/YORPATH/yorick/1.4/h) the library libgist.a
(-L/YORPATH/yorick/1.4/lib) and libX11.a
4) type:
python compile.py
python install.py
with luck the files:
gistCmodule.so
arrayfnsmodule.so
have been copied into EXECDIR/lib/python1.5/lib-dynload/,
where EXECDIR is the directory given to python by
./configure --prefix=INSTALLDIR --exec=EXECDIR
5) copy the graphics directory to:
INSTALLDIR/lib/python1.5/
6) Edit your .cshrc file so that PYTHONPATH includes
INSTALLDIR/lib/python1.5/graphics and
INSTALLDIR/lib/python1.5/graphics/gist i.e:
setenv PYTHONPATH .:/home/phil/lib/python:/home/phil/lib/linux/python:/home/phil/src.dir/python.dir/python-1.5/install/lib/python1.5/graphics:/home/phil/src.dir/python.dir/python-1.5/install/lib/python1.5/graphics/gist
7) Test with:
python gistdemo.py
You should be able to step through about 20 plots demonstrating some
of gist's features. For more documentation see:
http://xfiles.llnl.gov/PyGraphics/gist_frame.htm
_______________
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________