Change the update.sh script
use . instead of source and add a var for the pyvenv command
This commit is contained in:
parent
d2bbbbffb9
commit
76ead122e7
1 changed files with 5 additions and 4 deletions
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
VENV="poezio-venv"
|
VENV="poezio-venv"
|
||||||
|
VENV_COMMAND="pyvenv"
|
||||||
|
|
||||||
echo 'Updating poezio'
|
echo 'Updating poezio'
|
||||||
git pull origin slix || {
|
git pull origin slix || {
|
||||||
|
@ -19,18 +20,18 @@ if [ -e "$VENV" ]
|
||||||
then
|
then
|
||||||
# In case of a python version upgrade
|
# In case of a python version upgrade
|
||||||
echo 'Trying to upgrade the virtualenv'
|
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'
|
echo 'Updating the poezio dependencies'
|
||||||
pip install -r requirements.txt --upgrade
|
pip install -r requirements.txt --upgrade
|
||||||
echo 'Updating the poezio plugin dependencies'
|
echo 'Updating the poezio plugin dependencies'
|
||||||
pip install -r requirements-plugins.txt --upgrade
|
pip install -r requirements-plugins.txt --upgrade
|
||||||
else
|
else
|
||||||
echo "Creating the $VENV virtualenv"
|
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
|
cd "$VENV" # needed to download slixmpp inside the venv
|
||||||
|
|
||||||
echo 'Installing the poezio dependencies using pip'
|
echo 'Installing the poezio dependencies using pip'
|
||||||
|
|
Loading…
Reference in a new issue