-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfreeze_win.py
80 lines (74 loc) · 3.17 KB
/
freeze_win.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2011 CREA Lab, CNRS/Ecole Polytechnique UMR 7656 (Fr)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
__version__="1.0beta"
__url__="http://tinasoft.eu"
__longdescr__="A text-mining python module producing thematic field graphs"
__license__="GNU General Public License"
__keywords__="nlp,textmining,graph"
__author__="elias showk"
__author_email__="[email protected]"
#__classifiers__="nlp textmining http"
from os.path import join
from glob import glob
from cx_Freeze import setup, Executable
data_files = [
# ('Microsoft.VC90.CRT',glob(join('Microsoft.VC90.CRT','*.*'))),
# 'README',
# 'LICENSE',
# 'config_win.yaml',
# join('shared','gexf','gexf.template'),
# (join('shared','gexf'),join('shared','gexf','gexf.template')),
# (join('shared','stopwords'),glob(join('shared','stopwords','*.txt'))),
# (join('shared','nltk_data','corpora','brown'), join('shared','nltk_data','corpora','brown','*.*')),
# (join('shared','nltk_data','corpora','conll2000'), glob(join('shared','nltk_data','corpora','conll2000','*.*'))),
# (join('shared','nltk_data','tokenizers','punkt'), glob(join('shared','nltk_data','tokenizers','punkt','*.*')))
]
data_files += glob(join('Microsoft.VC90.CRT','*.*'))
#data_files += glob(join('shared','stopwords','*.txt'))
#data_files += glob(join('shared','nltk_data','corpora','brown','*'))
#data_files += glob(join('shared','nltk_data','corpora','conll2000','*'))
#data_files += glob(join('shared','nltk_data','tokenizers','punkt','*'))
#print data_files
# for win32, see: http://wiki.wxpython.org/cx_freeze
includes = [
'tinasoft.data.basecsv',
'tinasoft.data.coocmatrix',
'tinasoft.data.gexf',
'tinasoft.data.medline',
'tinasoft.data.tinasqlite',
'tinasoft.data.tinacsv',
'tinasoft.data.whitelist',
'jsonpickle','tenjin','simplejson'
]
excludes = ['_gtkagg', '_tkagg', 'curses', 'email', 'pywin.debugger',
'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl',
'Tkconstants', 'Tkinter','bsddb3','tinasoft.data.tinabsddb']
packages = ['nltk','numpy','twisted','twisted.web','twisted.internet','encodings','zope.interface']
setup(
name = "tinasoft",
version = __version__,
description = __longdescr__,
executables = [Executable("httpserver.py")],
options = {
"build_exe": {
"includes": includes,
"excludes": excludes,
"packages": packages,
"include_files": data_files,
}
},
)