Skip to content
Snippets Groups Projects
Commit 60a014dd authored by Amir Mohammadi's avatar Amir Mohammadi
Browse files

[install/from-scratch] dont pin on versions. use conda-forge

parent 31240591
No related branches found
No related tags found
1 merge request!17[install/from-scratch] dont pin on versions. use conda-forge
...@@ -14,114 +14,51 @@ NAME=$2 ...@@ -14,114 +14,51 @@ NAME=$2
PYTHON_VERSION=$3 PYTHON_VERSION=$3
CONDA=${BASEDIR}/bin/conda CONDA=${BASEDIR}/bin/conda
if [ ! -d ${BASEDIR}/envs/${NAME} ]; then if [ -d ${BASEDIR}/envs/${NAME} ]; then
echo "[>>] Creating environment ${NAME} for python ${PYTHON_VERSION}..." ${CONDA} remove -n ${NAME} --all
if [[ "$PYTHON_VERSION" == "2.7" ]]; then
${CONDA} create --yes -n ${NAME} --override-channels --channel defaults python=2.7.12=1
fi
if [[ "$PYTHON_VERSION" == "3.4" ]]; then
${CONDA} create --yes -n ${NAME} --override-channels --channel defaults python=3.4.5=0
fi
if [[ "$PYTHON_VERSION" == "3.5" ]]; then
${CONDA} create --yes -n ${NAME} --override-channels --channel defaults python=3.5.2=0
fi
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 "[>>] Creating environment ${NAME} for python ${PYTHON_VERSION} with bob dependencies..."
if [[ "$PYTHON_VERSION" == "2.7" ]]; then ${CONDA} create --yes -n ${NAME} --override-channels -c conda-forge -c defaults python=$PYTHON_VERSION \
${CONDA} install --yes -n ${NAME} --override-channels -c defaults \ boost \
nomkl \ caffe \
cmake \ cmake \
pip=8.1.2=py27_0 \ coverage \
coverage=4.2 \ cython \
sphinx=1.4.6=py27_0 \ dask \
sphinx_rtd_theme=0.1.9=py27_0 \ docopt \
cython=0.24=py27_0 \ ffmpeg \
docopt \ giflib \
ipython=4.2.0=py27_0 \ hdf5 \
matplotlib=1.5.1=np111py27_0\
nose=1.3.7=py27_1 \
numexpr=2.6.0 \
numpy=1.11.1 \
pillow=3.2.0=py27_1 \
pkg-config \
psutil=4.3.0=py27_0 \
scikit-learn=0.17.1 \
scipy=0.17.1 \
sqlalchemy=1.0.13=py27_0 \
dask=0.10.0=py27_0 \
scikit-image=0.12.3=np111py27_1 \
virtualenv
fi
if [[ "$PYTHON_VERSION" == "3.4" ]]; then
${CONDA} install --yes -n ${NAME} --override-channels -c defaults \
nomkl \
cmake \
pip=8.1.2=py34_0 \
coverage=4.2 \
sphinx=1.4.6=py34_0 \
sphinx_rtd_theme=0.1.9=py34_0 \
cython=0.24=py34_0 \
docopt \
ipython=4.2.0=py34_0 \
matplotlib=1.5.1=np111py34_0\
nose=1.3.7=py34_1 \
numexpr=2.6.0 \
numpy=1.11.1 \
pillow=3.2.0=py34_1 \
pkg-config \
psutil=4.3.0=py34_0 \
scikit-learn=0.17.1 \
scipy=0.17.1 \
sqlalchemy=1.0.13=py34_0 \
dask=0.10.0=py34_0 \
scikit-image=0.12.3=np111py34_1 \
virtualenv
fi
if [[ "$PYTHON_VERSION" == "3.5" ]]; then
${CONDA} install --yes -n ${NAME} --override-channels -c defaults \
nomkl \
cmake \
pip=8.1.2=py35_0 \
coverage=4.2 \
sphinx=1.4.6=py35_0 \
sphinx_rtd_theme=0.1.9=py35_0 \
cython=0.24=py35_0 \
docopt \
ipython=4.2.0=py35_0 \
matplotlib=1.5.1=np111py35_0\
nose=1.3.7=py35_1 \
numexpr=2.6.0 \
numpy=1.11.1 \
pillow=3.2.0=py35_1 \
pkg-config \
psutil=4.3.0=py35_0 \
scikit-learn=0.17.1 \
scipy=0.17.1 \
sqlalchemy=1.0.13=py35_0 \
dask=0.10.0=py35_0 \
scikit-image=0.12.3=np111py35_1 \
virtualenv
fi
${CONDA} install --yes -n ${NAME} --override-channels -c defaults \
hdf5=1.8.17=1 \
jpeg=8d=2 \
libpng=1.6.22=0 \
libtiff=4.0.6=2
${CONDA} install --yes -n ${NAME} --override-channels -c defaults -c conda-forge \
boost=1.61.0 \
ffmpeg=2.8.6 \
giflib=5.1.4 \
ipdb \ ipdb \
libblitz=0.10 \ ipython \
libmatio=1.5.6 \ jpeg \
libsvm=3.21 \ libblitz \
sox=14.4.2 \ libmatio \
vlfeat=0.9.20 libpng \
libsvm \
libtiff \
matplotlib \
nose \
numexpr \
numpy \
opencv \
pillow \
pip \
pkg-config \
psutil \
scikit-image \
scikit-learn \
scipy \
sox \
sphinx \
sphinx_rtd_theme \
sqlalchemy \
tensorflow \
virtualenv \
vlfeat
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