Wednesday, June 24, 2009

Create OpenERP Setup

OpenERP Make exe from sources Guide
================================
1. Install theses packages
­­­­­­­­­­­­­­­­­­­­­­­­­­
nsis­2.40­setup.exe
graphviz­2.20.2.exe

python­2.5.2.msi
egenix­mx­base­3.1.1.win32­py2.5.msi
PyXML­0.8.4.win32­py2.5.exe
libxml2­python­2.7.1.win32­py2.5.exe
lxml­2.1.2.win32­py2.5.exe
matplotlib­0.98.3.win32­py2.5.exe
numpy­1.1.1­win32­superpack­python2.5.exe
PIL­1.1.6.win32­py2.5.exe
PyChart­1.39.win32.exe ( created by Stephane Wirtel )
ReportLab­2.2.win32­py2.5.exe
vobject­0.7.1.win32.exe ( created by Stephane Wirtel )

pygobject­2.14.1­1.win32­py2.5.exe
pygtk­2.12.1­2.win32­py2.5.exe
pycairo­1.4.12­1.win32­py2.5.exe
gtk­2.12.9­win32­2.exe
gtk­dev­2.12.9­win32­2.exe

pydot­1.0.2.win32.exe ( created by Stephane Wirtel ) pyparsing­1.5.0.win32.exe
pytz­2008i.win32.exe ( created by Stephane Wirtel )
pywin32­212.win32­py2.5.exe

py2exe­0.6.8.win32­py2.5.exe

hippo­canvas­0.3.0­win32.zip ­ Uncompess this archive, and copy/paste the files
"libhippocanvas­1­0.dll" and "hippo.pyd" into C:\Python25\DLLs\

msvcp71.zip ­ Uncompress this archive and copy the msvcp71.dll into c:\WINDOWS\SYSTEM32

psycopg2­2.0.8.win32­py2.5­pg8.3.4­release.exe
you can install the setuptools package:
setuptools­0.6c9.win32­py2.5.exe
2. How to get the sources
­­­­­­­­­­­­­­­­­­­­­­­­­
Firstly, create a directory to store the files
c:> mkdir c:\openerp
c:> trunkcd openerp
c:\openerp> mkdir
c:\openerp> cd trunk
c:\openerp\trunk> bzr clone lp:~openerp/openobject­server/trunk server
c:\openerp\trunk> bzr clone lp:~openerp/openobject­client/trunk client
c:\openerp\trunk> bzr clone lp:~openerp/openobject­addons/trunk addons
3. Prepare the ground­­­­­­­­­­­­­­­­­­­­­
Copy all addons into the addons directory of the server, to include these addons in the archive
c:\openerp\trunk> xcopy addons\* server\bin\addons ­E
4. Package the server
­­­­­­­­­­­­­­­­­­­­­
c:\openerp\trunk> cd server
c:\openerp\trunk\server> python setup.py py2exe
c:\openerp\trunk\server> cd win32
c:\openerp\trunk\server\win32> python setup.py py2exe
c:\openerp\trunk\server\win32> cd ..
c:\openerp\trunk\server> makensis /DVERSION=5.0.0­alpha setup.nsi
After this instruction, you will get a new file openerp­server­setup­5.0.0­alpha.exe
5. Package the client
­­­­­­­­­­­­­­­­­­­­­
c:\openerp\trunk> cd client
c:\openerp\trunk\client> python setup.py py2exe
c:\openerp\trunk\client> makensis /DVERSION=5.0.0­alpha setup.nsi
After this instruction, you will get a new file openerp­client­setup­5.0.0­alpha.exe

References:­
http://www.openobject.com/forum/post36414.html?sid=4d7ea2ffc20cd97f761ea43fe2d7840b
http://www.openobject.com/forum/post37242.html?sid=33943b300ab3436dc7e6f347e640c0ef

No comments:

Post a Comment