diff --git a/install/from-scratch.sh b/install/from-scratch.sh index ac4cfab50c3268dd3e81dfea3a66f3e2148b0aed..10e532652ce510c94a316c295668819667cd5c19 100755 --- a/install/from-scratch.sh +++ b/install/from-scratch.sh @@ -13,6 +13,7 @@ BASEDIR=$1 NAME=$2 PYTHON_VERSION=$3 CONDA=${BASEDIR}/bin/conda +YML=bob-devel.yml if [ -d ${BASEDIR}/envs/${NAME} ]; then ${CONDA} remove -n ${NAME} --all --yes @@ -22,7 +23,10 @@ if [ -d ${BASEDIR}/envs/${NAME} ]; then fi fi +echo "[>>] Downloading latest bob-devel.yml environment..." +curl -o ${YML} https://gitlab.idiap.ch/bob/bob/raw/master/doc/${YML} + echo "[>>] Creating environment ${NAME} for python ${PYTHON_VERSION} with bob dependencies..." -${CONDA} env create -n ${NAME} --file=bob-devel.yml python=${PYTHON_VERSION} +${CONDA} env create --name=${NAME} --file=${YML} python=${PYTHON_VERSION} echo "[>>] Bye!" exit 0