forked from butscher/WikidPad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (56 loc) · 2.31 KB
/
setup.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
# setup.py
from distutils.core import setup
import os
from glob import glob
try:
import py2exe
except ImportError:
print "This setup.py file is solely made for building the Windows binary"
print ""
raise
from py2exe.build_exe import Target
wikidpad = Target(
# used for the versioninfo resource
version = '2.3',
name = 'WikidPad',
copyright = '(C) 2005-2014 Jason Horman, Michael Butscher, Gerhard Reitmayr',
description = 'Single user wiki notepad',
comments='',
# what to build
script = 'WikidPad.py',
icon_resources = [(0, 'icons/pwiki.ico'), (1, 'icons/pwiki.ico')]
)
excludes = ["win32api", "win32con", "win32pipe", "gadfly"]
setup(
options = {"py2exe": {"compressed": 1,
"exeoptimize": 1, # Opt.mode of the exe stub
"optimize": 2, # Opt.mode for compiling library.zip
"ascii": 1,
"excludes": excludes,
"dll_excludes": ["msvcp90.dll"]}},
name='WikidPad',
version = '2.3',
author = 'Michael Butscher',
author_email = '[email protected]',
url = 'http://www.mbutscher.de/software.html',
## scripts=['WikidPad.py'],
windows = [wikidpad],
package_dir = {'': 'lib'},
packages = ['pwiki', 'pwiki.wikidata', 'pwiki.wikidata.compact_sqlite',
'pwiki.wikidata.original_gadfly',
'pwiki.wikidata.original_sqlite', 'pwiki.timeView',
'pwiki.rtlibRepl'],
# py_modules=['encodings.utf_8', 'encodings.latin_1'],
data_files = [('icons', glob(os.path.join('icons', '*.*'))),
# ('lib', glob('sql_mar.*')),
('extensions', glob('extensions/*.*')),
('extensions/wikidPadParser', glob('extensions/wikidPadParser/*.*')),
('', ['sqlite3.dll', 'WikidPad.xrc', 'readme_Wic.txt', 'gadfly.zip',
'langlist.txt', 'appbase.css'] + glob('WikidPad_*.po')),
('WikidPadHelp', glob(os.path.join('WikidPadHelp', '*.wiki'))),
(os.path.join('WikidPadHelp', 'data'),
glob(os.path.join('WikidPadHelp', 'data', '*.*'))),
(os.path.join('WikidPadHelp', 'files'),
glob(os.path.join('WikidPadHelp', 'files', '*.*'))),
('export', [])]
)