changeset eb28d72be25d in tryton-tools:default
details: https://hg.tryton.org/tryton-tools?cmd=changeset;node=eb28d72be25d
description:
        Use venv to install dependencies
diffstat:

 update_translations |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 60cc0e03f056 -r eb28d72be25d update_translations
--- a/update_translations       Fri Nov 01 23:48:12 2019 +0100
+++ b/update_translations       Sun Dec 01 22:59:56 2019 +0100
@@ -13,8 +13,13 @@
 hg clone -q -b default https://hg.tryton.org/tryton-env
 hg clone -q ssh://[email protected]/weblate
 
+python3 -m venv --system-site-packages venv
+. venv/bin/activate
+
 cd tryton-env
 .hooks/link_modules
+.hooks/update_requirements
+pip3 install -q -r requirements.txt
 export PYTHONPATH=trytond:proteus
 export TRYTOND_DATABASE_URI=postgresql:///
 
@@ -31,7 +36,7 @@
 
 psql -q -c "UPDATE ir_translation SET value = ''" translations
 
-(cd tryton; python setup.py extract_messages) >/dev/null
+(cd tryton; python3 setup.py extract_messages) >/dev/null
 (cd sao; npm install --silent && ./node_modules/.bin/grunt xgettext) >/dev/null
 
 $SCRIPTS/export_weblate.py -d postgresql:///translations tryton sao ../weblate

Reply via email to