~openerp/openobject-server/web-dashboard

« back to all changes in this revision

Viewing changes to setup_win32.py

  • Committer: ced
  • Date: 2007-06-12 06:17:48 UTC
  • Revision ID: ced-ecbc91661cc1c28373db5d9769a4b36c4f23b79b
SERVER: improve win32 installer

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from distutils.core import setup
2
 
import py2exe
3
 
import glob
4
 
import os
5
 
import sys
6
 
import itertools
7
 
 
8
 
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), "bin"))
9
 
 
10
 
options = {"py2exe": {"compressed": 0,
11
 
                                                "optimize": 2,
12
 
                                                "packages": ["encodings","mx.DateTime","wizard","pychart","PIL", "pyparsing", "pydot"],
13
 
                                                "excludes" : ["Tkconstants","Tkinter","tcl"],
14
 
                                                }}
15
 
 
16
 
data_files = []
17
 
 
18
 
os.chdir('bin')
19
 
for (dp,dn,names) in os.walk('addons', 'i18n'):
20
 
        if '.svn' in dn:
21
 
                dn.remove('.svn')
22
 
        data_files.append((dp, map(lambda x: os.path.join('bin', dp,x), names)))
23
 
os.chdir('..')
24
 
 
25
 
setup(
26
 
        name="tinyerp-server",
27
 
        console = [{"script":"bin\\tinyerp-server.py", "icon_resources":[(1,"tinyerp-icon.ico")]}],
28
 
        data_files = data_files,
29
 
        options = options
30
 
        )