mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-02 18:48:48 +08:00
043721aa24
Use system packages on python 2.7 Try and fix PyQt4 and use wheelhouse astropy Fix version requirements
34 lines
908 B
Bash
Executable File
34 lines
908 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex
|
|
|
|
sh -e /etc/init.d/xvfb start
|
|
|
|
# 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
|
|
virtualenv -p python --system-site-packages ~/venv
|
|
sudo apt-get install python-scipy python-matplotlib
|
|
sed -i 's/cython>=/cython==/g' requirements.txt
|
|
sed -i 's/networkx>=/networkx==/g' requirements.txt
|
|
else
|
|
virtualenv -p python --system-site-packages ~/venv
|
|
fi
|
|
|
|
source ~/venv/bin/activate
|
|
pip install wheel flake8 coveralls nose
|
|
|
|
# install system tk for matplotlib
|
|
sudo apt-get install python-tk
|
|
|
|
|
|
# on Python 3.2, use matplotlib 1.3.1
|
|
if [[ $TRAVIS_PYTHON_VERSION == 2.7* ]]; then
|
|
sed -i 's/matplotlib>=*.*.*/matplotlib==1.3.1/g' requirements.txt
|
|
fi
|
|
|
|
pip install $WHEELHOUSE -r requirements.txt
|
|
|
|
# clean up disk space
|
|
sudo apt-get clean
|
|
sudo rm -r /tmp/*
|