Installing Iris currently requires you to build it from source. The latest release is available from https://github.com/SciTools/iris.
Iris makes use a range of other libraries and python modules. These dependencies must be in place before you can successfully install Iris. Once you have satisfied the requirements detailed below, extract the iris source package, cd to the new directory, and enter:
python setup.py install
We strongly encourage people to contribute to Iris and for this type of development activity an in-place build can be useful. Once you’ve cloned the Iris git repository you can perform an in-place build by entering:
python setup.py std_names
python setup.py build_ext --inplace
Details of other setup.py options and commands can be found by entering:
python setup.py --help
and:
python setup.py --help-commands
These are external packages which you will need to install before installing Iris.
Many of these packages are available in Linux package managers such as aptitude and yum. For example, it may be possible to install Numpy using:
apt-get install python-numpy
If you are installing dependencies with a package manager on Linux, you may need to install the development packages (look for a “-dev” postfix) in addition to the core packages.
These are optional packages which you may want to install to use Iris with different file formats and to enable plotting functionality. All of these are required for the Iris test suite to run.
The libmo_unpack library can be used by Iris for decoding/unpacking PP files or Fields files that use an lbpack value of 1 or 4. This library is open source, licensed under the 2-clause BSD licence. It can be obtained from http://puma.nerc.ac.uk/trac/UM_TOOLS/wiki/unpack.
Use of this library is not enabled by default. If this library is available its use can be enabled by installing Iris with the following command:
python setup.py --with-unpack install
Note that if this library and/or its associated header files are installed in a custom location then additional compiler arguments may need to be passed in to ensure that the Python extension module linking against it builds correctly:
python setup.py --with-unpack build_ext -I <custom include dir> \
-L <custom link-time libdir> -R <custom runtime libdir> install
The Enthought Python Distribution (EPD) for Windows, OS X or Redhat provides some of the dependencies for Iris as does Python (x, y) which tends to be updated a bit more frequently.