Requirements

  • python >= 2.6 and python < 3.0
  • atlas >= 3.6
  • fftw3 >= 3.2
  • gdbm >= 1.8
  • numpy >= 1.2
  • scipy >= 0.13
  • pyfits >= 3.2
  • ephem >= 3.7.5.3
  • aipy >= 1.0 and < 3.0
  • pytz >= 2012c
  • argparse [1]
  • unittest2 [1]
  • matplotlib >= 1.1 [2]
  • BeautifulSoup [1]
  • casacore [3]
[1](1, 2, 3) Required for Python 2.6 support
[2]Required for some of the included scripts
[3]Required for measurement set support

Building

The LSL package is installed as a regular Python package using distutils. Unzip and untar the source distribution. Setup the python interpreter you wish to use for running the package applications and switch to the root of the source distribution tree.

A setup configuration script is required to run the build process. A sample config file may be found in the root directory of the source distribution as ‘setup.cfg’. Do not modify any of the lines in the [build_ext] section of the config file.

To build the LSL package, run:

python setup.py build

Testing

To test the as-build LSL package, run:

python setup.py test

Installing

Install LSL by running:

pip install . [--root=<prefix>|--user]

If the ‘–root’ option is not provided, then the installation tree root directory is the same as for the python interpreter used to run setup.py. For instance, if the python interpreter is in ‘/usr/local/bin/python’, then <prefix> will be set to ‘/usr/local’. Otherwise, the explicit <prefix> value is taken from the command line option. The package will install files in the following locations:

  • <prefix>/bin
  • <prefix>/lib/python2.6/site-packages
  • <prefix>/share/doc
  • <prefix>/share/install

If an alternate <prefix> value is provided, you should set the PATH environment to include directory ‘<prefix>/bin’ and the PYTHONPATH environment to include directory ‘<prefix>/lib/python2.6/site-packages’.

If the ‘–user’ option is provided, then then installation tree root directory will be in the current user’s home directory.

Table Of Contents

Previous topic

LWA Software Library Documentation

Next topic

Release Notes

This Page