mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-30 23:11:53 +08:00
23 lines
627 B
Bash
Executable File
23 lines
627 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex
|
|
|
|
sh -e /etc/init.d/xvfb start
|
|
sudo apt-get update
|
|
|
|
pip install wheel flake8 coveralls nose
|
|
pip uninstall -y numpy
|
|
|
|
# on Python 2.7, use the system versions of numpy, scipy, and matplotlib
|
|
# and the minimum version of cython and networkx
|
|
if [[ $TRAVIS_PYTHON_VERSION == 2.7* ]]; then
|
|
sudo apt-get install python-scipy python-matplotlib
|
|
pip install https://github.com/cython/cython/archive/0.19.2.tar.gz
|
|
pip install https://github.com/networkx/networkx/archive/networkx-1.8.tar.gz
|
|
fi
|
|
|
|
pip install -r requirements.txt $WHEELHOUSE
|
|
|
|
# clean up disk space
|
|
sudo apt-get clean
|
|
sudo rm -r /tmp/*
|