use --force-reinstall for tqe

If bootstrap is called twice the requirements in
quickstart-extras-requirements will not be reinstalled.
replacing no-cache-dir w/ force-reinstall ensures the
latest tqe and other requirements are installed.

Change-Id: I1e7bdc5c07915fb7dc0aae95a71f9dd4c7cd21b7
This commit is contained in:
Wes Hayutin 2018-05-01 21:23:35 -04:00
parent bfc426af2d
commit 750b827a22
1 changed files with 1 additions and 2 deletions

View File

@ -135,6 +135,7 @@ bootstrap () {
pushd $OOOQ_DIR
python setup.py install egg_info --egg-base $OPT_WORKDIR || { echo 'python setup.py install failed' ; exit 1; }
pip install --force-reinstall "${OPT_REQARGS[@]}" || { echo 'python setup.py install failed' ; exit 1; }
if [ -x "$ZUUL_CLONER" ] && [ ! -z "$ZUUL_BRANCH" ]; then
mkdir -p .tmp
EXTRAS_DIR=$(/bin/mktemp -d -p $(pwd)/.tmp)
@ -147,8 +148,6 @@ bootstrap () {
pip install .
popd
fi
# Handle the case that pip is too old to use a cache-dir
pip install --no-cache-dir "${OPT_REQARGS[@]}" || { echo 'python setup.py install failed' ; exit 1; }
popd
)
# In order to do any filesystem operations on the system running ansible (if it has SELinux intalled)