changeset 1:bf1b86a05fc6

Clone directly the right branch and define branch and project
author Cédric Krier <ced@b2ck.com>
date Mon, 19 Sep 2016 17:22:21 +0200
parents 54600bcf63bf
children 143f346011c9
files setup_environment.sh
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/setup_environment.sh	Thu Jul 28 16:11:54 2016 +0200
+++ b/setup_environment.sh	Mon Sep 19 17:22:21 2016 +0200
@@ -2,6 +2,8 @@
 
 MODULES="stock_package_shipping stock_package_shipping_ups stock_package_shipping_dpd sale_extra_delayed orkos_sale_complaint"
 ADDITIONAL_PACKAGES="simpleeval cached_property vobject PyPDF2 zeep dbfread"
+BRANCH="4.0"
+PROJECT="orkos"
 
 create_virtualenv() {
     VIRTUALENV=`which virtualenv`
@@ -28,14 +30,12 @@
         exit 1
     fi
 
-    $MERCURIAL nclone http://hg.tryton.org/trytond
+    $MERCURIAL nclone -b $1 http://hg.tryton.org/$1/trytond
     if [ $? -ne 0 ]
     then
         echo 'Unable to nclone trytond'
         exit 1
     fi
-
-    find trytond/trytond/modules -maxdepth 1 -type d -execdir hg up -r $1 \;
 }
 
 pip_install() {
@@ -53,6 +53,6 @@
 }
 
 create_virtualenv
-install_trytond $2
+install_trytond $BRANCH
 pip_install
-install_specific_modules $1
+install_specific_modules $PROJECT