PyMSES has some Core dependencies plus some Recommended dependencies you might need to install to enable all PyMSES features.
The developpment team strongly recommends the user to install the EPD (Enthought Python Distribution) which wraps all these dependencies into a single, highly-portable package.
These packages are mandatory to use the basic functionality of PyMSES:
- a gcc-compatible C compiler,
- GNU make and friends,
- Python, version 2.x (not 3.x), including developement headers (Python.h and such), python 2.6.x or later is recommended to use some multiprocessing speed up.
- Python packages:
- iPython is not strictly required, but it makes the interactive experience so much better you will certainly want to install it.
Those packages are recommended for general use (plotting, easy input and output, image processing, GUI, ...). Some PyMSES features may be unavailable without them:
For now, the easiest way to install PyMSES from a tarball is:
- Extract the tarball into a directory, say ~/codes/pymses
- Run make in the directory
- Add the make directory to your PYTHONPATH
- Optional : Add the pymses/bin to your PATH, to quickly start the GUI with the amrviewer command or to launch basic scripts.
For example, using the bash shell:
$ cd ~/codes
$ tar -xvfz pymses-3.0.0.tar.gz
$ cd pymses_3.0.0
$ make
$ export PYTHONPATH=~/codes/pymses_3.0.0:$PYTHONPATH
$ export PATH=$PATH:~/codes/pymses_3.0.0/bin
Note that you will need to place the export statements in your ~/.bashrc or equivalent to set your PYTHONPATH and PATH for all future shell sessions.