Wiki

Clone wiki

dadi / Installation

Dependencies

Recommended

  • matplotlib (>= 0.98.1) (used for plotting routines)
  • IPython (much improved python shell)

Using a released version

Linux

  1. Unpack the source code tarball tar xzf dadi-<version>.tar.gz
  2. In the dadi-<version> directory, run python setup.py install. This will compile the C modules ∂a∂i uses and install those plus all ∂a∂i Python files in your Python installation's site-packages directory.
  3. A (growing) series of tests can be run in the tests directory, via python run_tests.py

OS/X and Windows

  • The easiest way is to download and run one of the (binary installers)[https://bitbucket.org/RyanGutenkunst/dadi/downloads]. Note that we still suggest downloading the source distribution to have access to tests, examples, and documentation.
  • The easiest way to install Python and the relevant dependencies is with a scientific python distribution, such as Enthought Canopy (which is free for academic users).
  • Note that installers are specific to the minor version of Python. For example, a 2.5 installer will work on 2.5.1 and 2.5.4, but not on 2.6. If you need a binary installer for a particular version of Python, please ask on the dadi-users mailing list.
  • If you have gcc installed, you can follow the above Linux directions.

Using the (bleeding-edge) subversion repository version

  • To get the absolute latest version of ∂a∂i, use the git repository.
  • To run from the source directory, use python setup.py build_ext --inplace. . This will compile the C modules and leave them in the source tree. Then set your PYTHONPATH to include the directory which setup.py is in, so that you'll be able to import ∂a∂i.

General notes

  • If you follow the instructions here, you should be able to import dadi working from any directory on your system, with one exception. You do not want to import dadi from the dadi-<version> directory. This will search down through the source directory for the C modules and will fail when it doesn't find them.

Mailing lists

Please sign up for the dadi-user mailing list, so we can keep you updated when new versions are released and you can follow support discussions.

Updated