1. Installation

1.1. Prequisites

1.2. Binary packages

On Debian and debian-based systems (Ubuntu, Mint), python-cpl can be installed with the command

apt-get install python-cpl

Python CPL comes with the Ubuntu distribution since 12.04. Debian packages are in Wheezy (Debian 7), Squeeze (Debian 8), and Testing

1.3. Source code

  • Python Package Index

  • Git repository. To access, do a:

    git clone git://github.com/olebole/python-cpl.git
    

    This gives you the current version in the subdirectory python-cpl. To update to the current version of an existing repository, do a git pull in the python-cpl directory.

    For more detailed information, check the manual page of git(1) and the github page of the project.

1.4. Compilation

For compilation, a C compiler is needed additionally to the software mentioned above.

The installation follows the standard procedure used in python. On default, the installation path /usr/local. If using a non-standard installation path, add the directory PREFIX/lib/python2.7/site-packages/ (lib64/python2.7/site-packages/ on 64 bit systems) to your environment variable PYTHONPATH where where PREFIX is the installation path for the package.

In the source directory of python-cpl, run

python setup.py install --prefix=PREFIX

There are other options available as well; use the --help option to list them.

1.5. Test suite

There are a number of tests defined in test/TestRecipe.py:

python TestRecipe.py

The test recipe needs an installed CPL development environment. The tests may print a memory corruption detection by glibc. This is normal, since the tests also check this behaviour in the recipe.

Tests are also automatically buils by Travis CI.