diff --git a/install/extra-wheels.sh b/install/extra-wheels.sh deleted file mode 100755 index f8456d127c07e8382d6f256251683c92622167fe..0000000000000000000000000000000000000000 --- a/install/extra-wheels.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash -# Wed 17 Aug 2016 13:50:05 CEST - -# Set the versions here -CYVLFEAT="git+https://github.com/menpo/cyvlfeat@v0.4.5" -MENPO="pathlib==1.0 git+https://github.com/menpo/menpo@v0.7.5 git+https://github.com/menpo/menpofit@v0.4.1" -SCHEMA="schema" -RRPG="pyedflib mne" - -if [ "${#}" != 2 ]; then - echo "usage: `basename $0` <basedir> <name>" - echo "example: `basename $0` /opt/conda bob-devel-py34" - exit 1 -fi - -echo "[>>] Activating conda environment ${2}..." -source ${1}/bin/activate ${2} - -if [ "${?}" != 0 ]; then - echo "[error] Activating conda environment - check your settings" - exit 1 -fi - -echo "[>>] Generating wheels..." -if [ "$(uname)" == "Linux" ]; then - CFLAGS="-I${CONDA_PREFIX}/include" LDFLAGS="-L${CONDA_PREFIX}/lib -lvl -Wl,-rpath=${CONDA_PREFIX}/lib" pip --no-cache-dir wheel --no-deps ${CYVLFEAT} -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 wheel --no-deps ${CYVLFEAT} -fi -pip --no-cache-dir wheel --no-deps ${MENPO} -pip --no-cache-dir wheel --no-deps ${SCHEMA} -pip --no-cache-dir wheel --no-deps ${RRPG} diff --git a/install/from-scratch.sh b/install/from-scratch.sh index 8974255b7211e65b15b2bf57daa32305516f7ef5..7fe00b9ec0c695112f6ed7100880e143f35cce18 100755 --- a/install/from-scratch.sh +++ b/install/from-scratch.sh @@ -48,6 +48,7 @@ ${CONDA} create --yes -n ${NAME} --override-channels -c conda-forge -c defaults numexpr \ numpy \ opencv \ + pathlib \ pillow \ pip \ pkg-config \ @@ -64,5 +65,22 @@ ${CONDA} create --yes -n ${NAME} --override-channels -c conda-forge -c defaults vlfeat #caffe +echo "[>>] Pip-installing extra dependencies in environment ${NAME} for ${PYTHON_VERSION}..." +source ${BASEDIR}/bin/activate ${NAME} + +# Cyvlfeat requires special instructions +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 +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 cylvfeat +fi + +pip --no-cache-dir install \ + menpo \ + menpofit \ + schema \ + pyedflib \ + mne + echo "[>>] Bye!" exit 0 diff --git a/install/upload-wheels.sh b/install/upload-wheels.sh deleted file mode 100755 index ba792a0c39d65b6df4abca955ed30ac9d5309bd9..0000000000000000000000000000000000000000 --- a/install/upload-wheels.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash -# Wed 17 Aug 2016 13:50:05 CEST - -if [ "${#}" = 0 ]; then - echo "usage: `basename $0` <wheels>" - echo "example: `basename $0` *.whl" - exit 1 -fi - -SERVER=https://www.idiap.ch/software/bob/wheels-upload/gitlab/ - -echo -n "Username: " -read username -echo -n "Password: " -read -s password -echo "" - -for wheel in ${@}; do - echo "[>>] Uploading ${wheel}..." - curl --silent --user "${username}:${password}" --insecure --upload-file ${wheel} ${SERVER} - if [ $? != 0 ]; then - echo "[error] curl command finished with an error condition" - exit 1 - fi -done