Browse Source

new: [0k-openerp] use ``requirements.txt`` to install dependencies.

postgres
Valentin Lab 10 years ago
parent
commit
eff1be46da
  1. 17
      precise/0k-openerp/hooks/install

17
precise/0k-openerp/hooks/install

@ -70,12 +70,7 @@ fi
python setup.py install 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 : ## Install pychart... from our repo as :
## download link in PyPi is dead, ## download link in PyPi is dead,
@ -126,7 +121,15 @@ fi
( (
cd /opt/apps && cd /opt/apps &&
git sub clone $GIT_0K_CLONE_OPTIONS $GIT_0K_SUB_CLONE_OPTIONS -b "$GIT_0K_CHECKOUT_REF" \ 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 adduser --system --home=/var/lib/openerp --group openerp

Loading…
Cancel
Save