| Back: Download | Home: Table of Contents | Next: Spire Projects |
These instructions are for systems that already have the additional packages required by Spire.
cd spire-1.5.0
python setup.py
setup.py tries to find the commands that run SPIDER and Jweb, and writes these commands to Spire/LocalVars.py
LocalVars.py also has a 'hostlist' variable. Edit this to include machines on your network that run spider.
E.g., Spire/LocalVars.py will look something like this:
spidercmd = '/usr/local/bin/spider' jwebcmd = 'java -Xmx300m -Djava.util.prefs.syncInterval=2000000 StartWeb SPIDUI &' hostlist = ['fred', 'barney', 'wilma'] webBasedir = 'http://www.wadsworth.org/spider_doc/spider/docs/spire'Then setup tries to copy the Spire directory to the Python site-packages directory, whose path may look like this:
/usr/local/lib/python2.4/site-packages/Spiresetup.py also installs a Spider directory under site-packages. The Spider library enables you to write Python programs that can work with Spider files. See www.wadsworth.org/spider_doc/spider/docs/python/spipylib/index.html
Finally, setup will display a command to add spire-1.5.0/bin to your path. The bin directory contains useful utilites, including numerous graphical tools, which are described at www.wadsworth.org/spider_doc/spider/docs/spire/guitools/index.html
ln -s /your/local/path/to/lib/python2.3/site-packages/Spire/spire.py spireAlternatively, you can add the installation directory to your path.
spire-1.5, contains
bin subdirectory, with spire, and various graphical tools (copied from guitools),newprogs and test subdirectories, containing batch files that are included with the Spire package.site-packages/Spire contains
LocalVars.py,config subdirectory, with various configuration files.
<location>/home/user/spire-1.5/newprogs</location>
newprogs directory into your working project directory, so you can alter the local copies without affecting the source batch files.