From eff1be46daa417af03a6195dd6b3c001f25df6a6 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 6 Oct 2014 12:41:50 +0200 Subject: [PATCH] new: [0k-openerp] use ``requirements.txt`` to install dependencies. --- precise/0k-openerp/hooks/install | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/precise/0k-openerp/hooks/install b/precise/0k-openerp/hooks/install index 249d9c2..2931bf6 100755 --- a/precise/0k-openerp/hooks/install +++ b/precise/0k-openerp/hooks/install @@ -70,12 +70,7 @@ fi python setup.py install ) -pip install lxml genshi==0.6 pyparsing==1.5.7 psycopg2 pyyaml reportlab mako \ - pywebdav==0.9.4 feedparser caldav pytz pydot \ - python-dateutil==1.5 cherrypy formencode==1.2.2 \ - babel simplejson==2.0.9 python-openid mysql-python vatnumber \ - mock unittest2 fudge docutils jinja2 gdata sact.epoch \ - shyaml psutil +pip install sact.epoch shyaml mock mysql-python ## Install pychart... from our repo as : ## download link in PyPi is dead, @@ -126,7 +121,15 @@ fi ( cd /opt/apps && git sub clone $GIT_0K_CLONE_OPTIONS $GIT_0K_SUB_CLONE_OPTIONS -b "$GIT_0K_CHECKOUT_REF" \ - "$GIT_0K_BASE"/0k/0k-oe + "$GIT_0K_BASE"/0k/0k-oe && + cd 0k-oe && + pip install -r odoo/requirements.txt && + for req in addons/*/requirements.txt; do + if [ -r "$req" ]; then + pip install -r "$req" + fi + done + ) adduser --system --home=/var/lib/openerp --group openerp