Generate and use upper-constraints for ironic-agent

Currently, ironic-python-agent is installed without using an
upper-constraints.txt file.

This commits ensures ironic-python-agent is installed using
upper-constraints.

Change-Id: I6be6cfc012941e2cc9996717cba39b5415b85e14
Closes-Bug: #1616554
This commit is contained in:
Mathieu Mitchell 2016-08-25 13:32:20 +00:00
parent 0ca20753ce
commit 796dcd043b

View File

@ -9,11 +9,14 @@ set -o pipefail
SCRIPTDIR=$(dirname $0) SCRIPTDIR=$(dirname $0)
IPADIR=/usr/share/ironic-python-agent IPADIR=/usr/share/ironic-python-agent
# Generate upper-constraints
$IPADIR/imagebuild/common/generate_upper_constraints.sh $IPADIR/upper-constraints.txt
# create the virtual environment # create the virtual environment
virtualenv $IPADIR/venv virtualenv $IPADIR/venv
# install IPA inside the virtual environment # install IPA inside the virtual environment
$IPADIR/venv/bin/pip install $IPADIR $IPADIR/venv/bin/pip install -c $IPADIR/upper-constraints.txt $IPADIR
# FIXME(lucasagomes): Figure out how we can use the "--install-option" # FIXME(lucasagomes): Figure out how we can use the "--install-option"
# parameter for pip install so we don't have to manually create a symlink # parameter for pip install so we don't have to manually create a symlink