Ich versuche, ein travis Continuous Build-System mit meinem Projekt einzurichten, die in ihren Abhängigkeiten numpy, scipy und matplotlib hat. Ich ziele auf Python 3.3.Travis-ci Matplotlib-Abhängigkeit und Python3
In meinem .travis.yml
Skript installiere ich numpy und scipy von apt-get, sowie (um sicher zu sein) von pip (nur numpy). Leider sagt matplotlib build immer noch, dass numpy bei Deps fehlt. Ich habe fast alle im WEB gefundenen Methoden ausprobiert, aber die meisten funktionieren nicht (sie sind veraltet, denke ich).
language: python
python:
- "3.3"
install:
- pip install numpy
- pip install colorama
- pip install matplotlib
- pip install nose
script: nosetests
virtualenv:
system_site_packages: true
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python3-numpy python3-scipy
Unten ist der interessante Teil von Travis Log. Es sagt, dass die Abhängigkeit nicht erfüllt ist, aber der Befehl pip kann numpy bereits von apt installiert sehen.
BUILDING MATPLOTLIB
matplotlib: 1.2.0
python: 3.3.2 (default, May 16 2013, 18:32:41) [GCC 4.6.3]
platform: linux
REQUIRED DEPENDENCIES
numpy: no
* You must install numpy 1.4 or later to build
* matplotlib.
Complete output from command python setup.py egg_info:
basedirlist is: ['/usr/local', '/usr']
Werfen Sie einen Blick auf die scipy travis.yml; Sie haben definitiv 'numpy' installiert: https://github.com/scipy/scipy/blob/master/.travis.yml –