]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-deploy-docs: use build_utils
authorAlfredo Deza <adeza@redhat.com>
Tue, 3 May 2016 12:27:33 +0000 (08:27 -0400)
committerAlfredo Deza <adeza@redhat.com>
Tue, 3 May 2016 12:27:33 +0000 (08:27 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-deploy-docs/build/build

index 643cb377a071816b3a54b4bd35053b96c9d30422..73e99b7a9f643eb08779bbc91f881e8efead543b 100644 (file)
@@ -2,24 +2,12 @@
 
 set -ex
 
-# 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
-
-# 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 tox; then
-    venv/bin/pip install --download-directory="$PIP_SDIST_INDEX" tox
-    venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index tox
-fi
-
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "tox" )
+install_python_packages "pkgs[@]"
 
 # create the docs build with tox
-tox -rv -e docs
+$VENV/tox -rv -e docs
 
 # publish docs to http://docs.ceph.com/docs/ceph-deploy
 rsync -auv --delete .tox/docs/tmp/html/* /var/ceph-deploy/docs/