************
Installation
************

Requirements
============

Ccdproc has the following requirements:

- astropy v0.4 or later
- numpy
- scipy

One easy way to get these dependencies is to install a python distribution like `anaconda <http://continuum.io/>`_.

Installing ccdproc
==================

Using pip
-------------

To install ccdproc with `pip <http://www.pip-installer.org/en/latest/>`_, simply run::

    pip install --no-deps ccdproc

.. note::

    The ``--no-deps`` flag is optional, but highly recommended if you already
    have Numpy installed, since otherwise pip will sometimes try to "help" you
    by upgrading your Numpy installation, which may not always be desired.

Building from source
====================

Obtaining the source packages
-----------------------------

Source packages
^^^^^^^^^^^^^^^

The latest stable source package for ccdproc can be `downloaded here
<https://pypi.python.org/pypi/ccdproc>`_.

Development repository
^^^^^^^^^^^^^^^^^^^^^^

The latest development version of ccdproc can be cloned from github
using this command::

   git clone git://github.com/astropy/ccdproc.git

Building and Installing
-----------------------

To build ccdproc (from the root of the source tree)::

    python setup.py build

To install ccdproc (from the root of the source tree)::

    python setup.py install

Testing a source code build of ccdproc
--------------------------------------

The easiest way to test that your ccdproc built correctly (without
installing ccdproc) is to run this from the root of the source tree::

    python setup.py test

