SERVER: improve win32 installer
bzr revid: ced-ecbc91661cc1c28373db5d9769a4b36c4f23b79b
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
from distutils.core import setup
|
||||
import py2exe
|
||||
import glob
|
||||
import os
|
||||
import sys
|
||||
import itertools
|
||||
|
||||
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), "bin"))
|
||||
|
||||
options = {"py2exe": {"compressed": 0,
|
||||
"optimize": 2,
|
||||
"packages": ["encodings","mx.DateTime","wizard","pychart","PIL", "pyparsing", "pydot"],
|
||||
"excludes" : ["Tkconstants","Tkinter","tcl"],
|
||||
}}
|
||||
|
||||
data_files = []
|
||||
|
||||
os.chdir('bin')
|
||||
for (dp,dn,names) in os.walk('addons', 'i18n'):
|
||||
if '.svn' in dn:
|
||||
dn.remove('.svn')
|
||||
data_files.append((dp, map(lambda x: os.path.join('bin', dp,x), names)))
|
||||
os.chdir('..')
|
||||
|
||||
setup(
|
||||
name="tinyerp-server",
|
||||
console = [{"script":"bin\\tinyerp-server.py", "icon_resources":[(1,"pixmaps\\tinyerp.ico")]}],
|
||||
data_files = data_files,
|
||||
options = options
|
||||
)
|
||||
Reference in New Issue
Block a user