]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
missing source when activating the venv 182/head
authorAndrew Schoen <aschoen@redhat.com>
Wed, 28 Oct 2015 21:44:30 +0000 (16:44 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 28 Oct 2015 21:44:30 +0000 (16:44 -0500)
This also fixes the path to pip after have the venv activated

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-build-next/build/setup

index 149039d8d71afa877268a98c244345e92eed7cfe..31bb1441ae72409975c52fad7590f5a7fb3505b6 100644 (file)
@@ -68,7 +68,7 @@ esac
 
 # Create the virtualenv
 virtualenv $WORKSPACE/venv
-$WORKSPACE/venv/bin/activate
+source $WORKSPACE/venv/bin/activate
 
 # Define and ensure the PIP cache
 PIP_SDIST_INDEX="$HOME/.cache/pip"
@@ -76,9 +76,9 @@ 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 chacractl; then
-    venv/bin/pip install --exists-action=i --download-directory="$PIP_SDIST_INDEX" chacractl
-    venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index chacractl
+if ! pip install --find-links="file://$PIP_SDIST_INDEX" --no-index chacractl; then
+    pip install --exists-action=i --download-directory="$PIP_SDIST_INDEX" chacractl
+    pip install --find-links="file://$PIP_SDIST_INDEX" --no-index chacractl
 fi
 
 # create the .chacractl config file