Skip to content
Snippets Groups Projects
Commit 1a1ae499 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Update from scratch script to pin versions.

parent f5dfeba8
No related branches found
No related tags found
No related merge requests found
...@@ -32,5 +32,5 @@ if [ ! -x ${CONDA} ]; then ...@@ -32,5 +32,5 @@ if [ ! -x ${CONDA} ]; then
${CONDA} config --add channels conda-forge ${CONDA} config --add channels conda-forge
fi fi
echo "[>>] Updating root environment..." echo "[>>] Updating conda in the root environment..."
${CONDA} update --yes -n root conda ${CONDA} update --yes -n root conda
...@@ -12,12 +12,6 @@ NAME=$2 ...@@ -12,12 +12,6 @@ NAME=$2
FILE=$3 FILE=$3
CONDA=${BASEDIR}/bin/conda CONDA=${BASEDIR}/bin/conda
if [ "$(uname)" == "Darwin" ]; then
ARCH="MacOSX-x86_64"
else
ARCH="Linux-x86_64"
fi
# Re-create the environment # Re-create the environment
if [ ! -d ${BASEDIR}/envs/${NAME} ]; then if [ ! -d ${BASEDIR}/envs/${NAME} ]; then
${CONDA} create --yes -n ${NAME} --file ${FILE} ${CONDA} create --yes -n ${NAME} --file ${FILE}
......
#!/usr/bin/env bash #!/usr/bin/env bash
# Wed 17 Aug 2016 13:50:29 CEST # Wed 17 Aug 2016 13:50:29 CEST
set -e
if [ "${#}" != 3 ]; then if [ "${#}" != 3 ]; then
echo "usage: `basename $0` <basedir> <name> <python-version>" 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-py34 3.4"
...@@ -11,49 +13,49 @@ BASEDIR=$1 ...@@ -11,49 +13,49 @@ BASEDIR=$1
NAME=$2 NAME=$2
PYTHON_VERSION=$3 PYTHON_VERSION=$3
CONDA=${BASEDIR}/bin/conda CONDA=${BASEDIR}/bin/conda
MINICONDA=${HOME}/Downloads/miniconda.sh
if [ ! -d ${BASEDIR}/envs/${NAME} ]; then if [ ! -d ${BASEDIR}/envs/${NAME} ]; then
echo "[>>] Creating environment ${NAME} for python ${PYTHON_VERSION}..." echo "[>>] Creating environment ${NAME} for python ${PYTHON_VERSION}..."
${CONDA} create --yes -n ${NAME} python=${PYTHON_VERSION} ${CONDA} create --yes -n ${NAME} --override-channels --channel defaults python=${PYTHON_VERSION}
fi fi
# For a complete list of dependencies, please read: # For a complete list of dependencies, please read:
# https://gitlab.idiap.ch/bob/bob/wikis/Dependencies # https://gitlab.idiap.ch/bob/bob/wikis/Dependencies
echo "[>>] Installing Bob dependencies on ${NAME}..." echo "[>>] Installing Bob dependencies on ${NAME}..."
${CONDA} install --yes -n ${NAME} \ ${CONDA} install --yes -n ${NAME} --override-channels -c defaults \
nomkl \ nomkl \
boost \
cmake \ cmake \
coverage \ coverage=4.2 \
sphinx \ sphinx=1.4.1 \
sphinx_rtd_theme \ sphinx_rtd_theme=0.1.9 \
cython \ cython=0.24 \
docopt \ docopt \
ffmpeg \ hdf5=1.8.17 \
giflib \ ipython=4.2.0 \
hdf5 \ jpeg=8d \
ipdb \ libpng=1.6.22 \
ipython \ libtiff=4.0.6 \
jpeg \ matplotlib=1.5.1 \
libblitz \ nose=1.3.7 \
libmatio \ numexpr=2.6.0 \
libpng \ numpy=1.11.1 \
libsvm \ pillow=3.2.0 \
libtiff \
matplotlib \
nose \
numexpr \
numpy \
opencv \
pillow \
pkg-config \ pkg-config \
psutil \ psutil=4.3.0 \
scikit-learn \ scikit-learn=0.17.1 \
scipy \ scipy=0.17.1 \
sox \ sqlalchemy=1.0.13
sqlalchemy \
vlfeat ${CONDA} install --yes -n ${NAME} --override-channels -c defaults -c conda-forge \
boost=1.61.0 \
ffmpeg=2.8.6 \
giflib=5.1.2 \
ipdb \
libblitz=0.10 \
libmatio=1.5.6 \
libsvm=3.21 \
sox=14.4.2 \
vlfeat=0.9.20
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