diff --git a/.travis.yml b/.travis.yml index aa816a4a..169b512b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,7 +34,10 @@ before_install: - sh -e /etc/init.d/xvfb start - sudo apt-get update + - sudo apt-get install $PYTHON-numpy + - wget https://raw.githubusercontent.com/numpy/numpy/master/numpy/_import_tools.py -O /home/travis/virtualenv/python3.2_with_system_site_packages/lib/python3.2/site-packages/numpy/_import_tools.py + - sudo apt-get install $PYTHON-scipy - sudo apt-get install libfreeimage3 @@ -47,22 +50,25 @@ before_install: - pip install --use-mirrors matplotlib; - fi - - pip install --use-mirrors pillow - - pip install --use-mirrors cython - - pip install --use-mirrors flake8 - - pip install --use-mirrors six + - pip install pillow + - pip install cython + - pip install flake8 + - pip install six - - pip install --use-mirrors nose-cov - - pip install --use-mirrors coveralls + - pip install nose-cov + - pip install coveralls - python check_bento_build.py install: + - tools/header.py "Dependency versions" + - tools/build_versions.py + - python setup.py build_ext --inplace script: # Matplotlib settings - - mkdir $HOME/.matplotlib + - mkdir -p $HOME/.matplotlib - touch $HOME/.matplotlib/matplotlibrc - "echo 'backend : Agg' > $HOME/.matplotlib/matplotlibrc" - "echo 'backend.qt4 : PyQt4' >> $HOME/.matplotlib/matplotlibrc" @@ -86,4 +92,3 @@ after_success: - if [[ $PYVER == '3.x' ]]; then - coveralls - fi - diff --git a/tools/build_versions.py b/tools/build_versions.py new file mode 100755 index 00000000..2c0e32ba --- /dev/null +++ b/tools/build_versions.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python + +from __future__ import print_function + +import numpy as np +import scipy as sp +import matplotlib as mpl +import six + +for m in (np, sp, mpl, six): + print(m.__name__.rjust(10), ' ', m.__version__) + diff --git a/tools/header.py b/tools/header.py new file mode 100755 index 00000000..d7a4c50b --- /dev/null +++ b/tools/header.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python + +from __future__ import print_function +import sys + +screen_width = 50 + +print('*' * screen_width) + +if len(sys.argv) > 1: + header = ' '.join(sys.argv[1:]) + print('*', header.center(screen_width - 4), '*') + print('*' * screen_width) +