diff --git a/gitlab/before_build.sh b/gitlab/before_build.sh index 7ee5ddbd8fa3bcd8950055aad6b7de2d93b42445..47538e6c1f528bb46ea18c72d21857978fce26d0 100755 --- a/gitlab/before_build.sh +++ b/gitlab/before_build.sh @@ -40,14 +40,15 @@ fi # Install this package's build dependencies PIPOPTS="--find-links ${WHEELS_REPOSITORY}" if [ ! -z "${WHEELS_SERVER}" ]; then - PIPOPTS="${PIPOPTS} --trusted-host ${WHEELS_SERVER}" + PIPOPTS="${PIPOPTS} --trusted-host ${WHEELS_SERVER}" fi -# when building a tag, do not use beta wheels + +# When building a tag, do not use beta wheels +PIPOPTS="${PIPOPTS} --use-wheel --no-index" if [ -z "${CI_BUILD_TAG}" ]; then - PIPOPTS="${PIPOPTS} --pre --use-wheel --no-index" -else - PIPOPTS="${PIPOPTS} --use-wheel --no-index" + PIPOPTS="${PIPOPTS} --pre" fi + if [ -e requirements.txt ]; then run_cmd ${use_pip} install ${PIPOPTS} --requirement requirements.txt else