Skip to content
Snippets Groups Projects
Commit 711174cd authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Accomodate nightly builds

parent 30611e5c
No related branches found
No related tags found
No related merge requests found
......@@ -3,10 +3,12 @@
source $(dirname ${0})/functions.sh
WHEELS_REPOSITORY="${DOCSERVER}/software/bob/wheels/gitlab/"
WHEELS_SERVER=`echo ${DOCSERVER} | sed 's;https\?://;;'`
if [ -z "${WHEELS_REPOSITORY}" ]; then
WHEELS_REPOSITORY="${DOCSERVER}/software/bob/wheels/gitlab/"
WHEELS_SERVER=`echo ${DOCSERVER} | sed 's;https\?://;;'`
check_env WHEELS_SERVER
fi
check_env WHEELS_REPOSITORY
check_env WHEELS_SERVER
# Readies the virtualenv to use for installation
if [ ! -d ${PREFIX} ]; then
......@@ -41,7 +43,10 @@ else
fi
# Install this package's build dependencies
PIPOPTS="--find-links ${WHEELS_REPOSITORY} --trusted-host ${WHEELS_SERVER}"
PIPOPTS="--find-links ${WHEELS_REPOSITORY}"
if [ ! -z "${WHEELS_SERVER}" ]; then
PIPOPTS="${PIPOPTS} --trusted-host ${WHEELS_SERVER}"
fi
PIPOPTS="${PIPOPTS} --pre --use-wheel --no-index"
if [ -e requirements.txt ]; then
run_cmd ${use_pip} install ${PIPOPTS} --requirement requirements.txt
......
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