[FIX] packaging: some changes for windows packaging.
authorVo Minh Thu <vmt@openerp.com>
Mon, 19 Dec 2011 14:44:37 +0000 (15:44 +0100)
committerVo Minh Thu <vmt@openerp.com>
Mon, 19 Dec 2011 14:44:37 +0000 (15:44 +0100)
bzr revid: vmt@openerp.com-20111219144437-mq6t8xj4ush2bxn8

install/openerp-intro.bmp [new file with mode: 0644]
install/openerp-slogan.bmp [new file with mode: 0644]
setup.nsi
setup.py

diff --git a/install/openerp-intro.bmp b/install/openerp-intro.bmp
new file mode 100644 (file)
index 0000000..8d3c934
Binary files /dev/null and b/install/openerp-intro.bmp differ
diff --git a/install/openerp-slogan.bmp b/install/openerp-slogan.bmp
new file mode 100644 (file)
index 0000000..a3cffd1
Binary files /dev/null and b/install/openerp-slogan.bmp differ
index 0ea37b0..532d7e4 100644 (file)
--- a/setup.nsi
+++ b/setup.nsi
@@ -104,12 +104,12 @@ Var MUI_TEMP
 Var STARTMENU_FOLDER\r
 \r
 !define MUI_ABORTWARNING\r
-!define MUI_ICON ".\pixmaps\openerp-icon.ico"\r
+!define MUI_ICON ".\install\openerp-icon.ico"\r
 \r
-!define MUI_WELCOMEFINISHPAGE_BITMAP ".\pixmaps\openerp-intro.bmp"\r
-!define MUI_UNWELCOMEFINISHPAGE_BITMAP ".\pixmaps\openerp-intro.bmp"\r
+!define MUI_WELCOMEFINISHPAGE_BITMAP ".\install\openerp-intro.bmp"\r
+!define MUI_UNWELCOMEFINISHPAGE_BITMAP ".\install\openerp-intro.bmp"\r
 !define MUI_HEADERIMAGE\r
-!define MUI_HEADERIMAGE_BITMAP ".\pixmaps\openerp-slogan.bmp"\r
+!define MUI_HEADERIMAGE_BITMAP ".\install\openerp-slogan.bmp"\r
 !define MUI_HEADERIMAGE_BITMAP_NOSTRETCH\r
 !define MUI_HEADER_TRANSPARENT_TEXT ""\r
 \r
index ac02cf4..10c98d7 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -38,12 +38,17 @@ def data():
         else:
             d[k]=[v]
     r = d.items()
+    if os.name == 'nt':
+        r.append(("Microsoft.VC90.CRT", glob.glob('C:\Microsoft.VC90.CRT\*.*')))
     return r
 
 def gen_manifest():
     file_list="\n".join(data())
     open('MANIFEST','w').write(file_list)
 
+if os.name == 'nt':
+    sys.path.append("C:\Microsoft.VC90.CRT")
+
 def py2exe_options():
     if os.name == 'nt':
         import py2exe
@@ -54,7 +59,7 @@ def py2exe_options():
                     "skip_archive": 1,
                     "optimize": 2,
                     "dist_dir": 'dist',
-                    "packages": [ "DAV", "HTMLParser", "PIL", "asynchat", "asyncore", "commands", "dateutil", "decimal", "email", "encodings", "imaplib", "lxml", "lxml._elementpath", "lxml.builder", "lxml.etree", "lxml.objectify", "mako", "openerp", "poplib", "pychart", "pydot", "pyparsing", "reportlab", "select", "simplejson", "smtplib", "uuid", "vatnumber", "vobject", "xml", "xml.dom", "xml.xpath", "yaml", ],
+                    "packages": [ "DAV", "HTMLParser", "PIL", "asynchat", "asyncore", "commands", "dateutil", "decimal", "email", "encodings", "imaplib", "lxml", "lxml._elementpath", "lxml.builder", "lxml.etree", "lxml.objectify", "mako", "openerp", "poplib", "pychart", "pydot", "pyparsing", "reportlab", "select", "simplejson", "smtplib", "uuid", "vatnumber", "vobject", "xml", "xml.dom", "yaml", ],
                     "excludes" : ["Tkconstants","Tkinter","tcl"],
                 }
             }