Commit 2ffefd0c authored by André Anjos's avatar André Anjos 💬
Browse files

Fixes before first push to github/travis/coveralls

parent 22a8babd
# After changing this file, run it through
# Generates 4 builds, the ones for python3 will install external wheels
language: python
- 2.6
- 2.7
- python: 3.2
- NUMPYSPEC===1.7.1
- python: 3.3
- NUMPYSPEC===1.8.0
- sudo add-apt-repository -y ppa:biometrics/bob
- sudo add-apt-repository -y ppa:biometrics/bob.preview
- sudo apt-get update -qq
- sudo apt-get install -qq --force-yes bob-dev libmatio-dev
- if [ -n "${NUMPYSPEC}" ]; then sudo apt-get install -qq libatlas-dev libatlas-base-dev liblapack-dev gfortran; fi
- if [ -n "${NUMPYSPEC}" ]; then pip install --upgrade pip setuptools; fi
- if [ -n "${NUMPYSPEC}" ]; then pip install --find-links --find-links --use-wheel numpy$NUMPYSPEC sphinx nose; fi
- pip install cpp-coveralls
- "python"
- "CFLAGS=-coverage ./bin/buildout"
- "./bin/python -c 'from import get_config; print(get_config())'"
- "./bin/coverage run ./bin/nosetests -sv"
- "./bin/sphinx-build -b doctest doc sphinx"
- "./bin/sphinx-build -b html doc sphinx"
- "coveralls --build-root=`pwd` --exclude=src"
......@@ -26,6 +26,46 @@ Installation
Install it through normal means, via PyPI or use ``zc.buildout`` to bootstrap
the package and run test units.
External Library Requirements
To properly install this package, you will need the following C/C++ components
1. ``bob-io >= 2.0.0a2``
2. ``libavformat >= 52.31.0``
3. ``libavcodec >= 52.20.0``
4. ``libavutil >= 49.15.0``
5. ``libswscale >= 0.7.1``
.. note::
``libavformat``, ``libavcodec``, ``libavutil`` and ``libswscale`` are
components which are part of `FFmpeg`_ or `libav`_. We support any of these
The minimum version for `FFmpeg`_ is ``0.5``, while the minimum version for
`libav`_ should be ``0.8``.
To test for the availability of the libraries listed above, use the command
``pkg-config``. For example::
$ pkg-config --modversion libavformat
$ pkg-config --modversion bob-io
If any of the components is not installed on paths accessible by
``pkg-config``, you have two options:
1. Set the environment variable ``PKG_CONFIG_PATH`` so that ``.pc`` files for
each of those distributions can be properly located (see ``man pkg-config``
for details);
2. If you are using ``zc.buildout`` to setup your working environment, you can
use the buildout variable ``prefixes`` to define the path to the
installation area for your external packages.
......@@ -86,3 +126,7 @@ configuration found on the root of the package::
Tweak the options in ``buildout.cfg`` to disable/enable verbosity and debug
.. Place here references to all citations in lower case
.. _ffmpeg:
.. _libav:
......@@ -22,7 +22,7 @@ prefixes = /idiap/group/torch5spro/nightlies/last/bob/linux-x86_64-release
xbob.extension = git branch=prototype
xbob.blitz = git = fs = git
recipe = xbob.buildout:scripts
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment