Installing numpy using conda before building ert.

This commit is contained in:
Joakim Hove 2016-07-01 17:01:02 +02:00
parent 06b18c1490
commit 47778333bc
2 changed files with 20 additions and 1 deletions

View File

@ -25,7 +25,6 @@ build_order=(opm-common opm-parser opm-material opm-output opm-core opm-grid opm
# This can typically be achived by using the 'clone-opm.sh' script.
function upstream_build {
project=${1}
echo "Building: ${project}"
@ -51,6 +50,11 @@ function downstream_build_and_test {
popd > /dev/null
}
#-----------------------------------------------------------------
export CONDA_HOME="$HOME/miniconda"
export PATH="$CONDA_HOME/bin:$PATH"
for i in "${!build_order[@]}"; do
if [[ "${build_order[$i]}" = "$1" ]]; then

View File

@ -47,8 +47,23 @@ function build_superlu {
}
function install_python_deps {
export TRAVIS_PYTHON_VERSION="2.7"
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda
export CONDA_HOME="$HOME/miniconda"
export PATH="$CONDA_HOME/bin:$PATH"
hash -r
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda install numpy
}
function build_ert {
install_python_deps
git clone https://github.com/Ensembles/ert.git
mkdir -p ert/build
pushd ert/build > /dev/null