summaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-11-13 23:37:44 +0100
committermathieui <mathieui@mathieui.net>2014-11-13 23:37:44 +0100
commit76ead122e7135094a0e4a95e65523867df93eac0 (patch)
tree9e676fa0b5944693da2800cdec3d2b66bcaeb6ec /update.sh
parentd2bbbbffb9dc770c3a8c41efdbe723632f03fdf5 (diff)
downloadpoezio-76ead122e7135094a0e4a95e65523867df93eac0.tar.gz
poezio-76ead122e7135094a0e4a95e65523867df93eac0.tar.bz2
poezio-76ead122e7135094a0e4a95e65523867df93eac0.tar.xz
poezio-76ead122e7135094a0e4a95e65523867df93eac0.zip
Change the update.sh script
use . instead of source and add a var for the pyvenv command
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/update.sh b/update.sh
index 08a420bb..3203d506 100755
--- a/update.sh
+++ b/update.sh
@@ -8,6 +8,7 @@
cd "$(dirname "$0")"
VENV="poezio-venv"
+VENV_COMMAND="pyvenv"
echo 'Updating poezio'
git pull origin slix || {
@@ -19,18 +20,18 @@ if [ -e "$VENV" ]
then
# In case of a python version upgrade
echo 'Trying to upgrade the virtualenv'
- pyvenv --upgrade "$VENV"
+ $VENV_COMMAND --upgrade "$VENV"
- source "$VENV/bin/activate"
+ . "$VENV/bin/activate"
echo 'Updating the poezio dependencies'
pip install -r requirements.txt --upgrade
echo 'Updating the poezio plugin dependencies'
pip install -r requirements-plugins.txt --upgrade
else
echo "Creating the $VENV virtualenv"
- pyvenv "$VENV"
+ $VENV_COMMAND "$VENV"
- source "$VENV/bin/activate"
+ . "$VENV/bin/activate"
cd "$VENV" # needed to download slixmpp inside the venv
echo 'Installing the poezio dependencies using pip'