]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
use the new utility to install packages
authorAlfredo Deza <adeza@redhat.com>
Fri, 20 Nov 2015 20:31:16 +0000 (15:31 -0500)
committerAlfredo Deza <adeza@redhat.com>
Fri, 20 Nov 2015 20:31:16 +0000 (15:31 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-deploy-pull-requests/build/setup

index 7e2eb0237d6b50feb069ed8c16b97b16de3c6d67..46f976a1fa2ed1ca93077e459a44e8c1a52bab54 100644 (file)
@@ -1,24 +1,9 @@
 #!/bin/bash
 
-set -ex
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "ansible" "tox" )
+install_python_packages "pkgs[@]"
 
-# Create the virtualenv
-virtualenv venv
-. venv/bin/activate
-
-# Define and ensure the PIP cache
-PIP_SDIST_INDEX="$HOME/.cache/pip"
-mkdir -p $PIP_SDIST_INDEX
-
-# The setup for this job ensures that a copy of ceph-build will be available
-# for this script
-
-# Install the package by trying with the cache first, otherwise doing a download only, and then
-# trying to install from the cache again.
-if ! venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index ansible; then
-    venv/bin/pip install --exists-action=i --download-directory="$PIP_SDIST_INDEX" ansible
-    venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index ansible
-fi
 
 # run ansible to get this current host to meet our requirements, specifying
 # a local connection and 'localhost' as the host where to execute