commit 2adb7bccde4dbb385671fca8f734bc9bdafd6d71 Author: Mark Goddard Date: Thu Oct 8 15:39:03 2020 +0100 Use upper constraints when installing Bifrost requirements Currently the install-deps.sh script installs Bifrost's Python requirements without upper constraints. This can result in requirements drifting over time, with issues arising in older branches. This change fixes the issue by using an upper constraints to install Bifrost's requirements. Change-Id: Icf66d0faf77837b9b48df344578823e46017b1df (cherry picked from commit b6624b2dbee6134be8e1db18b49cfd0228429021) diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index 482d2f4..4f2b1c6 100644 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -136,9 +136,9 @@ bindep -b &> /dev/null || ${INSTALLER_CMD} $(bindep -b) echo "Installing Python requirements" if [ -n "${VENV-}" ]; then - ${PIP} install -r "$(dirname $0)/../requirements.txt" + ${PIP} install -r "$(dirname $0)/../requirements.txt" -c ${UPPER_CONSTRAINTS_FILE:-https://releases.openstack.org/constraints/upper/ussuri} else - sudo -H -E ${PIP} install -r "$(dirname $0)/../requirements.txt" + sudo -H -E ${PIP} install -r "$(dirname $0)/../requirements.txt" -c ${UPPER_CONSTRAINTS_FILE:-https://releases.openstack.org/constraints/upper/ussuri} fi echo "Completed installation of basic dependencies."