2 from distutils.core import setup
\r
7 list_conf = os.listdir("configuration")
\r
8 conf = [os.path.join("configuration",f) for f in list_conf if f != '.svn']
\r
10 list_r = os.listdir("Rscripts")
\r
11 rscripts = [os.path.join("Rscripts",f) for f in list_r if f != '.svn']
\r
13 list_i = os.listdir("images")
\r
14 images = [os.path.join("images",f) for f in list_i if f != '.svn']
\r
16 list_d = os.listdir("dictionnaires")
\r
17 dicos = [os.path.join("dictionnaires", f) for f in list_d if f !='.svn']
\r
19 excludes = ['_gtkagg', '_tkagg', 'curses', 'pywin.debugger',
\r
20 'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl',
\r
21 'Tkconstants', 'Tkinter']
\r
23 dll_excludes = ['tcl85.dll', 'tk85.dll']
\r
26 py26MSdll = glob.glob(r"dll\\*.*")
\r
28 data_files = [("Microsoft.VC90.CRT", py26MSdll),
\r
29 ("lib\\Microsoft.VC90.CRT", py26MSdll),]
\r
30 data_files += [("configuration",conf),
\r
31 ("Rscripts",rscripts),
\r
32 ("locale\\fr_FR\\LC_MESSAGES", ["locale\\fr_FR\\LC_MESSAGES\\iramuteq.mo"]),
\r
33 ("locale\\en\\LC_MESSAGES", ["locale\\en\\LC_MESSAGES\\iramuteq.mo"]),
\r
34 ("dictionnaires", dicos),
\r
36 ("",["gpl-2.0.txt","gpl-2.0-fr.txt","son_fin.wav"])]
\r
40 "script": "iramuteq.py",
\r
41 "icon_resources": [(1, "images\\iraiconw7.ico")]
\r
44 options={"py2exe":{"packages":["wx", "dbhash"],
\r
45 "excludes" : excludes,
\r
46 "dll_excludes" : dll_excludes,}
\r
48 data_files = data_files,
\r