In my project, I (should) use the function included in Numpy 1.8, but not in earlier versions ( formatter numpy.set_printoptions option).
Since the Travis CI build machines are based on Ubuntu 12.04, by default I only have Numpy 1.6.1 available. Then I tried to install the Numpy-1.8.1-Debian package for Ubuntu 14.04 and its dependencies manually, which led to further problems:
I need to install the libblas3 and liblapack3 packages to install Numpy 1.8, which is not possible if liblapack3gf and libblas3gf (which are by default) are installed on the system, because the packages will break them. If I apt-get remove them, libatlas3gf-base is automatically installed using the same apt-get command (which does not correspond to the standard Ubuntu system, I even install it on my local machine to make sure). If I then try to remove Vlibatlas3gf-baseV, again liblapack3gf and libblas3gf will be automatically installed again.
I donβt know how to deal with this problem, or how to get around this to get Numpy 1.8 to work with Travis. I also tried suggestions for updating Numpy via pip provided here , but this did not work in Travis.
Any help is much appreciated!
Thank you very much!
Decision:
I followed the rth answer to the following .travis.yml file with additional help here and here :
language: python matrix: include: - python: 2.7 env: NUMPY=1.8 SCIPY=0.13 notifications: email: false before_install: - travis_retry wget http://repo.continuum.io/miniconda/Miniconda-3.8.3-Linux-x86_64.sh -O miniconda.sh - chmod +x miniconda.sh - bash miniconda.sh -b -p $HOME/miniconda - export PATH=/home/travis/miniconda/bin:$PATH - conda update --yes conda install: - conda create --yes -n test python=$TRAVIS_PYTHON_VERSION - source activate test - conda install --yes numpy=$NUMPY scipy=$SCIPY matplotlib pip - pip install setuptools - [ ... some other packages to install ... ] - python setup.py install script: - nosetests
Now everything works as expected. Please note: you can not import and use PyLab with this setting, see the Comments below for an explanation.
source share