diff options
| author | Xavier ALT <xal@openerp.com> | 2012-04-26 11:29:46 +0200 |
|---|---|---|
| committer | Xavier ALT <xal@openerp.com> | 2012-04-26 11:29:46 +0200 |
| commit | 74a49e9d982a103dcb4e4b0cb3715d6fe223c4fa (patch) | |
| tree | a2f402e0f98fbea0953fa4432d9e6428b10c2ac8 | |
| parent | bcc52b06298f5e734bdc285d8490e884e8c8b75b (diff) | |
[FIX] win32: also package vs2008 runtime under win32 so that service start correctly
bzr revid: xal@openerp.com-20120426092946-h3lfhojl608xf62z
| -rw-r--r-- | win32/setup.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/win32/setup.py b/win32/setup.py index 9c064c1f6d8..2dfb8ef3493 100644 --- a/win32/setup.py +++ b/win32/setup.py @@ -19,9 +19,16 @@ # ############################################################################## +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: |
