Files
odoo_source/setup.README
T
Vo Minh Thu 175dc96747 [IMP] setup.py: cleaning
- Removed unnecessary custom code to search/list files and addons.
- Handling of some environment variable and files created specifically by debian/rule.
- This case should be handled by simply copying the addons in the server (as is done)
  for packaging if needed. A setup.py file will probably be created for addons in the
  future.
- The console option has been reintroduced (it is needed for py2exe) but taking care
  of adding it only on os=nt.
- The dependency on pychart as been commented out as we already include its code.
- Building (with py2exe) on windows has yet to be tested.

bzr revid: vmt@openerp.com-20110304160911-4redpkh8mbn19rid
2011-03-04 17:09:11 +01:00

28 lines
1.0 KiB
Plaintext

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/ \
bin/openerp-server.py