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

Update to use bob-devel conda package

parent e5c2e3e7
No related branches found
No related tags found
No related merge requests found
......@@ -35,12 +35,6 @@ The parameters are:
2. The name of the environment to be created
3. The version of python to use for this environment
Once the environment is generated, you may generate the package list like this:
```sh
$ /opt/conda/bin/conda list -n bob-devel-py27 -e > linux/devel-py27.txt
```
#### Extra OS packages
......
......@@ -5,7 +5,7 @@ set -e
if [ "${#}" != 3 ]; then
echo "usage: `basename $0` <basedir> <name> <python-version>"
echo "example: `basename $0` /opt/conda bob-devel-py34 3.4"
echo "example: `basename $0` /opt/conda bob-devel-py35 3.5"
exit 1
fi
......@@ -14,7 +14,6 @@ NAME=$2
PYTHON_VERSION=$3
PYVER=`echo $PYTHON_VERSION | sed -e 's/\.//'`
CONDA=${BASEDIR}/bin/conda
YML=bob-devel-py${PYVER}.yml
if [ -d ${BASEDIR}/envs/${NAME} ]; then
${CONDA} remove -n ${NAME} --all --yes
......@@ -24,12 +23,7 @@ if [ -d ${BASEDIR}/envs/${NAME} ]; then
fi
fi
if [ ! -e "${YML}" ]; then
echo "[>>] Downloading latest bob-devel.yml environment..."
curl -o ${YML} https://gitlab.idiap.ch/bob/bob/raw/master/doc/${YML}
fi
echo "[>>] Creating environment ${NAME} for python ${PYTHON_VERSION} with bob dependencies..."
${CONDA} env create --name=${NAME} --file=${YML} python=${PYTHON_VERSION}
${CONDA} create --name=${NAME} --override-channels --channel=http://www.idiap.ch/software/bob/conda --channel=defaults python=${PYTHON_VERSION} bob-devel
echo "[>>] Bye!"
exit 0
......@@ -17,7 +17,7 @@ ${CONDA} clean --all --yes
echo "[>>] Updating conda and conda-build..."
${CONDA} install -n root conda conda-build --yes
for k in 2.7 3.4 3.5; do
for k in 2.7 3.5 3.6; do
py=`echo $k | sed -e 's/\.//'`
e="bob-devel-py$py"
echo "[>>] Installing CI environment $e using python-$k..."
......
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