Installation

Requirements

PyTPM requires the following:

  • Python 2.6, 2.7 or 3.2.
  • GCC.
  • The Distribute package.
  • Nose for running tests.
  • Cython, only if the Cython output needs to be regenerated.

To build the documentation Sphinx and the numpydoc Sphinx extension is required.

PyTPM was tested on Ubuntu 10.10 and 11.04.

Installation

Important

The file src/tpm/delta_AT.c must be updated when Delta AT (DAT = TAI - UTC) is changed by the IERS, and PyTPM Cython code must re-compiled. See Time scales and calendars, for ways to get updated values for this quantity. A new version of PyTPM will be released when this change occurs.

If you don’t have Distribute, then install it. Then do one of the following:

  • pip or easy_install

    Install pip and then run pip install pytpm.

    If easy_install is available then easy_install pytpm will also work. Distribute comes with easy_install. pip itself can be installed using the command easy_install pip.

or

  • Manual installation.

    Download the distribution from the pypi page for the project. Then run python setup.py install. Use the –prefix <dest> or –user arguments to change the installation location.

With both these methods, virtualenv and virtualenvwrapper can be used. These tools enable easy installation and maintenance of Python packages.

To run tests and to build documentation, the manual installation method has to be followed. Run python setup.py test and then run python setup.py install. To build documentation, run make html in the doc directory.

Exploring the Cython code

See the file devel-notes.rst in the source code repository.

Table Of Contents

Previous topic

Python interface to the TPM C library

Next topic

Coordinate conversions using TPM and PyTPM

This Page