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

update install scripts to use our own channel

parent 36247420
No related branches found
No related tags found
1 merge request!35update install scripts to use our own channel
...@@ -22,46 +22,56 @@ if [ -d ${BASEDIR}/envs/${NAME} ]; then ...@@ -22,46 +22,56 @@ if [ -d ${BASEDIR}/envs/${NAME} ]; then
fi fi
fi fi
if [ "$(uname)" == "Linux" ] && [ ${PYTHON_VERSION} == "2.7" ]; then
CAFFE=caffe
else
CAFFE=
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 "[>>] Creating environment ${NAME} for python ${PYTHON_VERSION} with bob dependencies..." echo "[>>] Creating environment ${NAME} for python ${PYTHON_VERSION} with bob dependencies..."
${CONDA} create --yes -n ${NAME} --override-channels -c conda-forge -c defaults python=$PYTHON_VERSION \ ${CONDA} create --yes -n ${NAME} --override-channels -c https://www.idiap.ch/software/bob/conda -c defaults python=$PYTHON_VERSION \
boost \ anaconda=4.2.0 \
boost=1.61 \
${CAFFE} \
cmake \ cmake \
coverage \ coverage \
cython \ cython=0.24.1 \
dask \ dask=0.11.0 \
docopt \ docopt \
ffmpeg \ ffmpeg=2.8.10 \
giflib \ gcc=4.8.5 \
hdf5 \ libgcc=4.8.5 \
ipdb \ giflib=5.1.4 \
hdf5=1.8.17 \
ipython \ ipython \
jpeg \ jpeg=8d \
libblitz \ libblitz=0.10 \
libmatio \ libmatio=1.5 \
libpng \ libpng=1.6.22 \
libsvm \ libsvm=3.21 \
libtiff \ libtiff=4.0.6 \
matplotlib=1 \ matplotlib=1.5.3 \
nose \ nose=1.3.7 \
numexpr \ numexpr=2.6.1 \
numpy \ numpy=1.11 \
opencv=3 \ opencv=3 \
pillow \ pillow=3.3.1 \
pip \ pip=8.1.2 \
pkg-config \ pkg-config \
psutil \ psutil=4.3.1 \
scikit-image \ scikit-image=0.12.3 \
scikit-learn \ scikit-learn=0.17.1 \
scipy \ scipy=0.18.1 \
sox \ sox=14.4.2 \
sphinx \ sphinx=1.4.6 \
sphinx_rtd_theme \ sphinx_rtd_theme \
sqlalchemy \ sqlalchemy=1.0.13 \
tensorflow \ tensorflow \
toolchain \
virtualenv \ virtualenv \
vlfeat vlfeat=0.9.20
# Commented out while @amohammadi fixes it in conda-forge # Commented out while @amohammadi fixes it in conda-forge
#if [ "$(uname)" == "Linux" ] && [ ${PYTHON_VERSION} == "2.7" ]; then #if [ "$(uname)" == "Linux" ] && [ ${PYTHON_VERSION} == "2.7" ]; then
...@@ -76,7 +86,7 @@ cyvlfeat=git+https://github.com/menpo/cyvlfeat@v0.4.5 ...@@ -76,7 +86,7 @@ cyvlfeat=git+https://github.com/menpo/cyvlfeat@v0.4.5
if [ "$(uname)" == "Linux" ]; then if [ "$(uname)" == "Linux" ]; then
CFLAGS="-I${CONDA_PREFIX}/include" LDFLAGS="-L${CONDA_PREFIX}/lib -lvl -Wl,-rpath=${CONDA_PREFIX}/lib" pip --no-cache-dir install ${cyvlfeat} CFLAGS="-I${CONDA_PREFIX}/include" LDFLAGS="-L${CONDA_PREFIX}/lib -lvl -Wl,-rpath=${CONDA_PREFIX}/lib" pip --no-cache-dir install ${cyvlfeat}
else else
CFLAGS="-I${CONDA_PREFIX}/include -mmacosx-version-min=10.9" LDFLAGS="-L${CONDA_PREFIX}/lib -lvl -Wl,-headerpad_max_install_names" pip --no-cache-dir install ${cyvlfeat} CFLAGS="-I${CONDA_PREFIX}/include" LDFLAGS="-L${CONDA_PREFIX}/lib -lvl -Wl,-headerpad_max_install_names" pip --no-cache-dir install ${cyvlfeat}
fi fi
pip --no-cache-dir install \ pip --no-cache-dir install \
...@@ -84,7 +94,8 @@ pip --no-cache-dir install \ ...@@ -84,7 +94,8 @@ pip --no-cache-dir install \
git+https://github.com/menpo/menpofit@v0.4.1 \ git+https://github.com/menpo/menpofit@v0.4.1 \
schema \ schema \
pyedflib \ pyedflib \
mne mne \
ipdb
echo "[>>] Bye!" echo "[>>] Bye!"
exit 0 exit 0
...@@ -29,13 +29,9 @@ if [ ! -x ${CONDA} ]; then ...@@ -29,13 +29,9 @@ if [ ! -x ${CONDA} ]; then
echo "[>>] Creating root environment and setting basic options..." echo "[>>] Creating root environment and setting basic options..."
bash ${MINICONDA} -b -p ${BASEDIR} bash ${MINICONDA} -b -p ${BASEDIR}
${CONDA} config --set show_channel_urls True ${CONDA} config --set show_channel_urls True
${CONDA} config --add channels conda-forge ${CONDA} config --add channels defaults
${CONDA} config --add channels https://www.idiap.ch/software/bob/conda
fi fi
echo "[>>] Updating conda in the root environment..." echo "[>>] Updating conda in the root environment..."
${CONDA} update --yes -n root conda ${CONDA} update --yes -n root conda
echo "[>>] Installing conda-smithy..."
${CONDA} install --yes -n root conda-smithy
echo "You need to manually install https://hub.github.com/ too ..."
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