diff options
| author | Vo Minh Thu <vmt@openerp.com> | 2011-03-24 11:56:51 +0100 |
|---|---|---|
| committer | Vo Minh Thu <vmt@openerp.com> | 2011-03-24 11:56:51 +0100 |
| commit | e7d0ec2b92ec17b27568b6b84b4b00a9c7e4670e (patch) | |
| tree | ffebeb266586717632f3647b7e8afbdc420d8231 /setup.README | |
| parent | 7c1ea9057b7ce7c11f839be16448b26a28573e70 (diff) | |
| parent | 1c95c0f86606b33ca3d5869003f667313eb1a3cc (diff) | |
[MERGE] merged setup.py revamping
lp bug: https://launchpad.net/bugs/715667 fixed
lp bug: https://launchpad.net/bugs/703422 fixed
lp bug: https://launchpad.net/bugs/727058 fixed
bzr revid: vmt@openerp.com-20110324105651-cd0zmwa47wms9abj
Diffstat (limited to 'setup.README')
| -rw-r--r-- | setup.README | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/setup.README b/setup.README new file mode 100644 index 00000000000..5ee564ecfb4 --- /dev/null +++ b/setup.README @@ -0,0 +1,27 @@ +Some instructions to use setup.py for a user-install. +This file should/will be moved on a proper documentation place later. + +- Possibly clean any left-over of the previous build. + > rm -rf dist openerp_server.egg-info + +- Possibly copy the addons in the server if we want them to be packaged + together: + > rsync -av --delete \ + --exclude .bzr/ \ + --exclude .bzrignore \ + --exclude /__init__.py \ + --exclude /base \ + --exclude /base_quality_interrogation.py \ + <path-to-addons> openerp/addons + +- Create the user-local directory where we want the package to be installed: + > mkdir -p /home/openerp/openerp-tmp/lib/python2.6/site-packages/ + +- Use --prefix to specify where the package is installed and include that + place in PYTHONPATH: + > PYTHONPATH=/home/openerp/openerp-tmp/lib/python2.6/site-packages/ \ + python setup.py install --prefix=/home/openerp/openerp-tmp + +- Run the main script, again specifying the PYTHONPATH: + > PYTHONPATH=/home/openerp/openerp-tmp/lib/python2.6/site-packages/ \ + /home/openerp/openerp-tmp/bin/openerp-server |
