[FIX] win32: also package vs2008 runtime under win32 so that service start correctly
authorXavier ALT <xal@openerp.com>
Thu, 26 Apr 2012 09:29:46 +0000 (11:29 +0200)
committerXavier ALT <xal@openerp.com>
Thu, 26 Apr 2012 09:29:46 +0000 (11:29 +0200)
bzr revid: xal@openerp.com-20120426092946-h3lfhojl608xf62z

win32/setup.py

index 9c064c1..2dfb8ef 100644 (file)
 #
 ##############################################################################
 
+import os
+import glob
 from distutils.core import setup
 import py2exe
 
+def datas():
+    r = []
+    if os.name == 'nt':
+        r.append(("Microsoft.VC90.CRT", glob.glob('C:\Microsoft.VC90.CRT\*.*')))
+    return r
 
 setup(service=["OpenERPServerService"],
       options={"py2exe":{"excludes":["Tkconstants","Tkinter","tcl",
@@ -29,7 +36,8 @@ setup(service=["OpenERPServerService"],
                                      "ImageTk", "PIL.ImageTk",
                                      "FixTk"],
                          "skip_archive": 1,
-                         "optimize": 2,}}
+                         "optimize": 2,}},
+      data_files=datas(),
       )
 
 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: