Installing numpy using conda before building ert.
This commit is contained in:
parent
06b18c1490
commit
47778333bc
@ -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.
|
# This can typically be achived by using the 'clone-opm.sh' script.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function upstream_build {
|
function upstream_build {
|
||||||
project=${1}
|
project=${1}
|
||||||
echo "Building: ${project}"
|
echo "Building: ${project}"
|
||||||
@ -51,6 +50,11 @@ function downstream_build_and_test {
|
|||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------
|
||||||
|
|
||||||
|
export CONDA_HOME="$HOME/miniconda"
|
||||||
|
export PATH="$CONDA_HOME/bin:$PATH"
|
||||||
|
|
||||||
|
|
||||||
for i in "${!build_order[@]}"; do
|
for i in "${!build_order[@]}"; do
|
||||||
if [[ "${build_order[$i]}" = "$1" ]]; then
|
if [[ "${build_order[$i]}" = "$1" ]]; then
|
||||||
|
@ -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 {
|
function build_ert {
|
||||||
|
install_python_deps
|
||||||
git clone https://github.com/Ensembles/ert.git
|
git clone https://github.com/Ensembles/ert.git
|
||||||
mkdir -p ert/build
|
mkdir -p ert/build
|
||||||
pushd ert/build > /dev/null
|
pushd ert/build > /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user