我正在尝试在travis-ci.org上测试软件包的构建,但是遇到了pip install scipy超时的问题:
Installing collected packages: scipy
Running setup.py install for scipy
Running command /home/travis/virtualenv/python2.6.9/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-Fn2gmJ/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-hWDx9L-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/travis/virtualenv/python2.6.9/include/site/python2.6
No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.
The build has been terminated
(摘自最近的build log)。
如何在没有超时的情况下在Travis上构建scipy> = 0.11?
最佳答案
解决方案很简单。只需在安装命令前面加上travis_wait。有关更多详细信息,请参见https://docs.travis-ci.com/user/common-build-problems。
关于scipy - 如何在没有超时的情况下在Travis CI上安装某些软件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28746046/