Files
scikit-image/tools/travis_install_optional.sh
T

35 lines
886 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
tools/header.py "Install optional dependencies"
# Install Qt and then update the Matplotlib settings
if [[ $TRAVIS_PYTHON_VERSION == 2.7* ]]; then
sudo apt-get install -q python-qt4
else
sudo apt-get install -q libqt4-dev
pip install -q PySide $WHEELHOUSE
python ~/virtualenv/python${TRAVIS_PYTHON_VERSION}/bin/pyside_postinstall.py -install
fi
# imread does NOT support py3.2
if [[ $TRAVIS_PYTHON_VERSION != 3.2 ]]; then
sudo apt-get install -q libtiff4-dev libwebp-dev libpng12-dev xcftools
pip install -q imread
fi
# TODO: update when SimpleITK become available on py34 or hopefully pip
if [[ $TRAVIS_PYTHON_VERSION != 3.4 ]]; then
easy_install -q SimpleITK
fi
sudo apt-get install -q libfreeimage3
pip install -q astropy
if [[ $TRAVIS_PYTHON_VERSION == 2.* ]]; then
pip install -q pyamg
fi
pip install -q tifffile