From: Alfredo Deza Date: Mon, 30 Nov 2015 19:50:16 +0000 (-0500) Subject: use the new build_utils to install ansible X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F251%2Fhead;p=ceph-build.git use the new build_utils to install ansible Signed-off-by: Alfredo Deza --- 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