From a5fb36ebf8cbbdaec78ae3ca41ce6c38254ec2a1 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 2 Dec 2015 12:35:28 -0500 Subject: [PATCH] ensure latest pip is installed, preventing odl, distro-based pip being used Signed-off-by: Alfredo Deza --- scripts/build_utils.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 889da587..105a5460 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -11,7 +11,7 @@ install_python_packages () { # Usage: # # to_install=( "ansible" "chacractl>=0.0.4" ) - # install_python_packages "to_install[@]" + # install_python_packages "to_install[@]" # Create the virtualenv virtualenv $WORKSPACE/venv @@ -20,6 +20,10 @@ install_python_packages () { PIP_SDIST_INDEX="$HOME/.cache/pip" mkdir -p $PIP_SDIST_INDEX + echo "Ensuring latest pip is installed" + $VENV/pip install --upgrade --exists-action=i --download="$PIP_SDIST_INDEX" pip + $VENV/pip install --upgrade --exists-action=i --find-links="file://$PIP_SDIST_INDEX" --no-index pip + pkgs=("${!1}") for package in ${pkgs[@]}; do echo $package -- 2.39.5