Statistics
| Branch: | Revision:

iof-tools / networkxMiCe / networkx-master / tools / travis / osx_install.sh @ 5cef0f13

History | View | Annotate | Download (1.06 KB)

1
#!/usr/bin/env bash
2
set -ex
3

    
4
# set up Miniconda on OSX
5
if [[ "${OSX_PKG_ENV}" == miniconda ]]; then
6
    wget https://repo.continuum.io/miniconda/Miniconda3-4.3.21-MacOSX-x86_64.sh -O miniconda.sh
7
    bash miniconda.sh -b -p $HOME/miniconda
8
    export PATH="$HOME/miniconda/bin:$PATH"
9
    hash -r
10
    conda config --set always_yes yes --set changeps1 no
11
    conda update -q conda
12
    # Useful for debugging any issues with conda
13
    conda info -a
14

    
15
    conda create -q -n testenv python=$TRAVIS_PYTHON_VERSION decorator
16
    source activate testenv
17
else
18
    # set up Python and virtualenv on OSX
19
    git clone https://github.com/matthew-brett/multibuild
20
    source multibuild/osx_utils.sh
21
    get_macpython_environment $TRAVIS_PYTHON_VERSION venv
22
fi
23

    
24
if [[ "${OPTIONAL_DEPS}" == 1 ]]; then
25
    if [[ "${OSX_PKG_ENV}" == miniconda ]]; then
26
        conda install graphviz=2.38
27
        export PKG_CONFIG_PATH=/Users/travis/miniconda/envs/testenv/lib/pkgconfig
28
    else
29
        brew install graphviz
30
    fi
31
    dot -V
32
    sed -i "" 's/^gdal.*/gdal==1.11.2/' requirements/extras.txt
33
fi
34

    
35
set +ex