From 175dc967475198d681892fb0c40d42750e09f114 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Fri, 4 Mar 2011 17:09:11 +0100 Subject: [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 --- setup.README | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 setup.README (limited to 'setup.README') diff --git a/setup.README b/setup.README new file mode 100644 index 00000000000..4432e5bd1a6 --- /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 \ + 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 -- cgit v1.2.3 From 7766fcca6215e7bf27bf436ee484c8beb0d0eaad Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Thu, 24 Mar 2011 10:50:12 +0100 Subject: [REF] renamed openerp-server.py to openerp-server. bzr revid: vmt@openerp.com-20110324095012-a5joofz60zrhbit5 --- setup.README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.README') diff --git a/setup.README b/setup.README index 4432e5bd1a6..5ee564ecfb4 100644 --- a/setup.README +++ b/setup.README @@ -24,4 +24,4 @@ This file should/will be moved on a proper documentation place later. - Run the main script, again specifying the PYTHONPATH: > PYTHONPATH=/home/openerp/openerp-tmp/lib/python2.6/site-packages/ \ - bin/openerp-server.py + /home/openerp/openerp-tmp/bin/openerp-server -- cgit v1.2.3