]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
build_utils: fix setuptools installation 619/head
authorJohn Spray <john.spray@redhat.com>
Tue, 24 Jan 2017 01:05:13 +0000 (01:05 +0000)
committerJohn Spray <john.spray@redhat.com>
Tue, 24 Jan 2017 01:05:13 +0000 (01:05 +0000)
Hopefully the original order of pip vs. setuptools
in this script was not important, because apparently
we now need latest pip in order to install setuptools.

Fixes: http://tracker.ceph.com/issues/18645
Signed-off-by: John Spray <john.spray@redhat.com>
scripts/build_utils.sh

index dbc42680127f157044e191c93a927de579a05780..8c8a3974239ac09fc55409ef711904e37f558f43 100644 (file)
@@ -47,13 +47,13 @@ install_python_packages_no_binary () {
     PIP_SDIST_INDEX="$HOME/.cache/pip"
     mkdir -p $PIP_SDIST_INDEX
 
-    echo "Updating setuptools"
-    $VENV/pip install --upgrade --exists-action=i --download="$PIP_SDIST_INDEX" setuptools
-
     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
 
+    echo "Updating setuptools"
+    $VENV/pip install --upgrade --exists-action=i --download="$PIP_SDIST_INDEX" setuptools
+
     pkgs=("${!1}")
     for package in ${pkgs[@]}; do
         echo $package
@@ -81,13 +81,13 @@ install_python_packages () {
     PIP_SDIST_INDEX="$HOME/.cache/pip"
     mkdir -p $PIP_SDIST_INDEX
 
-    echo "Updating setuptools"
-    $VENV/pip install --upgrade --exists-action=i --download="$PIP_SDIST_INDEX" setuptools
-
     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
 
+    echo "Updating setuptools"
+    $VENV/pip install --upgrade --exists-action=i --download="$PIP_SDIST_INDEX" setuptools
+
     pkgs=("${!1}")
     for package in ${pkgs[@]}; do
         echo $package