diff --git a/install/from-scratch.sh b/install/from-scratch.sh index 82af9be966e2fdc9aa79f623311df52bb1d7c92e..9ea38a8a950f11112284bb550c2973cd63379da0 100755 --- a/install/from-scratch.sh +++ b/install/from-scratch.sh @@ -22,6 +22,13 @@ if [ -d ${BASEDIR}/envs/${NAME} ]; then fi fi + +if [ "$(uname)" == "Linux" ] && [ ${PYTHON_VERSION} == "2.7" ]; then + CAFFE=caffe +else + CAFFE= +fi + # For a complete list of dependencies, please read: # https://gitlab.idiap.ch/bob/bob/wikis/Dependencies echo "[>>] Creating environment ${NAME} for python ${PYTHON_VERSION} with bob dependencies..." @@ -33,6 +40,7 @@ ${CONDA} create --yes -n ${NAME} --override-channels -c conda-forge -c defaults dask \ docopt \ ffmpeg \ + gcc \ giflib \ hdf5 \ ipdb \ @@ -61,12 +69,8 @@ ${CONDA} create --yes -n ${NAME} --override-channels -c conda-forge -c defaults sqlalchemy \ tensorflow \ virtualenv \ - vlfeat - -# Commented out while @amohammadi fixes it in conda-forge -#if [ "$(uname)" == "Linux" ] && [ ${PYTHON_VERSION} == "2.7" ]; then -# ${CONDA} install --yes -n ${NAME} --override-channels -c conda-forge -c defaults caffe -#fi + vlfeat \ + ${CAFFE} echo "[>>] Pip-installing extra dependencies in environment ${NAME} for ${PYTHON_VERSION}..." source ${BASEDIR}/bin/activate ${NAME}