From 2f1d1ef31953e9aa695d32a81108261aa671646d Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Mon, 30 Nov 2015 14:50:16 -0500 Subject: [PATCH] use the new build_utils to install ansible Signed-off-by: Alfredo Deza --- ceph-deploy-tag/build/build | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/ceph-deploy-tag/build/build b/ceph-deploy-tag/build/build index a8350371..22abe60a 100644 --- a/ceph-deploy-tag/build/build +++ b/ceph-deploy-tag/build/build @@ -7,23 +7,9 @@ if [ "$TAG" = false ] ; then exit 0 fi -# 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 +# the following two methods exist in scripts/build_utils.sh +pkgs=( "ansible" ) +install_python_packages "pkgs[@]" # run ansible to do all the tagging and release specifying # a local connection and 'localhost' as the host where to execute -- 2.47.3