Skip to content
Snippets Groups Projects
Commit cd087fb1 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Import bob-devel.yml from bob itself (closes bob#240)

parent f24d5914
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ BASEDIR=$1 ...@@ -13,6 +13,7 @@ BASEDIR=$1
NAME=$2 NAME=$2
PYTHON_VERSION=$3 PYTHON_VERSION=$3
CONDA=${BASEDIR}/bin/conda CONDA=${BASEDIR}/bin/conda
YML=bob-devel.yml
if [ -d ${BASEDIR}/envs/${NAME} ]; then if [ -d ${BASEDIR}/envs/${NAME} ]; then
${CONDA} remove -n ${NAME} --all --yes ${CONDA} remove -n ${NAME} --all --yes
...@@ -22,7 +23,10 @@ if [ -d ${BASEDIR}/envs/${NAME} ]; then ...@@ -22,7 +23,10 @@ if [ -d ${BASEDIR}/envs/${NAME} ]; then
fi fi
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..." 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!" echo "[>>] Bye!"
exit 0 exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment