如何在travis-ci中构建scikit-image?

时间:2015-02-14 03:42:15

标签: python travis-ci scikit-image

我正在尝试构建一个在scikit-image上使用Travis-ci的脚本。它抱怨six不是最新的。为了确定,我试图在github上复制scikit-image项目的.travis.yml,但它没有改变这种情况。我也尝试更新six,但无济于事......

有人知道如何在travis上构建scikit-image吗?

我的要求.txt:

# Requirements list:
scikit-image

我的追踪:

$ source ~/virtualenv/python3.3/bin/activate

$ python --version

Python 3.3.5

$ pip --version

pip 6.0.7 from /home/travis/virtualenv/python3.3.5/lib/python3.3/site-packages (python 3.3)

5.80s$ pip install -r requirements.txt

You are using pip version 6.0.7, however version 6.0.8 is available.

You should consider upgrading via the 'pip install --upgrade pip' command.

Collecting scikit-image (from -r requirements.txt (line 2))

Downloading scikit-image-0.10.1.tar.gz (16.7MB)

100% |################################| 16.7MB 20kB/s

Traceback (most recent call last):

File "<string>", line 20, in <module>

File "/tmp/pip-build-wsd_vd/scikit-image/setup.py", line 110, in <module>

check_requirements()

File "/tmp/pip-build-wsd_vd/scikit-image/setup.py", line 105, in check_requirements

% ((package_name, ) + min_version))

ImportError: You need `six` version 1.3 or later.

Complete output from command python setup.py egg_info:

Traceback (most recent call last):

File "<string>", line 20, in <module>

File "/tmp/pip-build-wsd_vd/scikit-image/setup.py", line 110, in <module>

check_requirements()

File "/tmp/pip-build-wsd_vd/scikit-image/setup.py", line 105, in check_requirements

% ((package_name, ) + min_version))

ImportError: You need `six` version 1.3 or later.

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-wsd_vd/scikit-image

The command "pip install -r requirements.txt" failed and exited with 1 during .

Your build has been stopped.

1 个答案:

答案 0 :(得分:1)

如果您收到某个特定依赖关系未得到满足的错误,那么更具体地说明该依赖关系通常会有所帮助。我喜欢将我不能直接使用的依赖项放在before_install部分。

before_install:
    pip install six>=1.3
install:
    pip install -r requirements.txt

pip允许您为安装的软件包版本指定约束。如果您必须使用1.3,则可以使用==