build.sh 870 Bytes
Newer Older
Tiago de Freitas Pereira's avatar
Tiago de Freitas Pereira committed
1 2 3 4 5 6 7 8 9
#!/usr/bin/env bash
# Wed 21 Sep 2016 13:08:05 CEST

source $(dirname ${0})/functions.sh

run_cmd ./bin/buildout -c buildout-before-patch.cfg
run_cmd wget https://www.idiap.ch/software/bob/databases/latest/PythonFaceEvaluation.tar.bz2
run_cmd mkdir PythonFaceEvaluation
run_cmd tar -xjf PythonFaceEvaluation.tar.bz2 -C PythonFaceEvaluation
Tiago de Freitas Pereira's avatar
Tiago de Freitas Pereira committed
10
run_cmd ./bin/patch_CSU.py PythonFaceEvaluation
Tiago de Freitas Pereira's avatar
Tiago de Freitas Pereira committed
11 12
run_cmd ./bin/buildout buildout:csu-dir=./PythonFaceEvaluation
export PYTHONPATH="PythonFaceEvaluation:$PYTHONPATH"
Tiago de Freitas Pereira's avatar
Tiago de Freitas Pereira committed
13 14 15 16 17 18

if [ -x ./bin/bob_dbmanage.py ]; then
  run_cmd ./bin/bob_dbmanage.py all download --force;
fi

if [ -d ./doc ]; then
19
  run_cmd ./bin/sphinx-build -n doc sphinx
Tiago de Freitas Pereira's avatar
Tiago de Freitas Pereira committed
20 21 22 23 24 25 26 27 28 29
fi

if [ -z "${WHEEL_TAG}" ]; then
  # C/C++ extensions
  run_cmd ./bin/python setup.py bdist_wheel
else
  # Python-only packages
  run_cmd ./bin/python setup.py bdist_wheel --python-tag ${WHEEL_TAG}
fi