]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ensure latest pip is installed, preventing odl, distro-based pip being used 261/head
authorAlfredo Deza <adeza@redhat.com>
Wed, 2 Dec 2015 17:35:28 +0000 (12:35 -0500)
committerAlfredo Deza <adeza@redhat.com>
Wed, 2 Dec 2015 17:35:39 +0000 (12:35 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
scripts/build_utils.sh

index 889da587c22dbe6481641971a93160ed7aa3c448..105a546028686e6c8b4cc6662c64999b2641b680 100644 (file)
@@ -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