This tutorial will walk you through the process of installing Pylo. To follow, you really only need three basic things:
You may adapt the file and directory names in this tutorial to suit your liking, just be sure to be consistent in your changes.
Note
Whenever you see the “$” dollar sign in this tutorial, this means you should enter the subsequent text at your shell prompt. You don’t have to be root. A few spots are marked with “sudo” to show that these do require root privileges if you are using a Python interpreter that is installed globally.
Note
If you have already installed hedge, then you automatically also already have pyublas, and you can skip this step.
The first step in this installation is to install PyUblas. To achieve this, please follow PyUblas’s installation instructions.
Download the Silo source code, version 4.6.1 or newer. Then unpack, build and install it:
$ tar xfz ~/download/silo-N.N.N.tar.gz
$ cd silo-N.N.N
$ ./configure.py --prefix=$HOME/pool --enable-shared=yes --enable-static=no
$ make install
During prior steps of this installation, you will have created a file called .aksetup-defaults.py in your home directory. Now add the following lines to this file:
SILO_INC_DIR = ['${HOME}/pool/include']
SILO_LIB_DIR = ['${HOME}/pool/lib']
You will need to adapt the above path names to the location where you installed the Silo software, of course.
Note
Make sure not to miss the initial dot in the configuration file name, it’s important.
Note
The order of the entries in the build configuration file does not matter.
Download PyVisfile and unpack it:
$ tar xfz pyvisfile-VERSION.tar.gz
Just type:
$ cd pyvisfile-VERSION # if you're not there already
$ sudo python setup.py install
Once that works, congratulations! You’ve successfully built pyvisfile.