Spire is written in Python and uses the Tk/Tkinter graphics library as well as some other Python packages. It comes with its own version of Python and all the required packages.
This installation will only use SPIDER's python to run the executable scripts in the /YOUR_SPIDER_DIRECTORY/tools/bin directory. It will not superceed any previously installed Python on your system.
Access the Spire directory in your SPIDER distribution and run the
Spire installation shell script:
(be sure it starts with dot-slash!):
When the installation finds all of the necessary system requirements,
it will ask for the correct command to run SPIDER on your system e.g.:
Is this the correct command to run spider?:
Just follow its response instructions.
The installation may ask to add: YOUR_SPIDER_DIRECTORY/spire/bin to your 'path'. This directory contains executables for Spire and the python tools. If you do not want the script to edit your startup file you can say 'No'.
If you did not allow the install script to alter your shell startup files you will
have to edit them yourself:
If you are using csh, add the: tools/bin directory to your path by adding the following line in your .cshrc file (substituting for the correct value for 'YOUR_SPIDER_DIRECTORY'):
setenv PATH /YOUR_SPIDER_DIRECTORY/tools/bin:$PATH
or if you are using bash add the: tools/bin directory to your path by adding the following lines in your .bashrc file (substituting for the correct value for 'YOUR_SPIDER_DIRECTORY'):
Run spire and the Python tool programs without the .py extension, e.g., 'spire' not 'spire.py' and 'qview', not 'qview.py'.
The shell script:
setup.py tries to find the command that to run SPIDER
on your system, and writes this command to: Spire/LocalVars.py
Spire/LocalVars.py will then contain a line like this:
spidercmd = '/usr/local/bin/spider'
The installation will access various sub-directories under: YOUR_SPIDER_DIRECTORY/spire including:
|bin||python2.5, python2.7, spire, and various python tools|
|lib||Dependencies like tk/tcl, etc|
Additional packages used by Spire which are installed together with Spire:
|Tcl/Tk8.4 (or later)||www.tcl.tk/software/tcltk|
|BLT (a Tcl plotting package)||sourceforge.net/projects/blt|
|Python megawidgets (Pmw)||sourceforge.net/projects/pmw|
|Python Imaging Library (PIL)||www.pythonware.com/products/pil|
|Numpy (Python Numeric)||sourceforge.net/projects/numpy|