-
André Anjos authoredAndré Anjos authored
build.sh 595 B
#!/usr/bin/env bash
# Tue 13 Dec 2016 17:36:51 CET
# Parameters:
#
# $1: database name to run the download command for. If unset, use "all"
#
source $(dirname ${0})/functions.sh
run_cmd ./bin/buildout
dbname=${1:-all}
if [ -x ./bin/bob_dbmanage.py ]; then
run_cmd ./bin/bob_dbmanage.py ${dbname} download --force;
fi
if [ -d ./doc ]; then
run_cmd ./bin/sphinx-build -W doc sphinx
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