Using a released version
- Unpack the source code tarball
tar xzf dadi-<version>.tar.gz
- In the
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
- A (growing) series of tests can be run in the
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
PYTHONPATHto include the directory which
setup.pyis in, so that you'll be able to import ∂a∂i.
- If you follow the instructions here, you should be able to
import dadiworking from any directory on your system, with one exception. You do not want to
import dadifrom 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.
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.