-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
29 lines (26 loc) · 845 Bytes
/
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
from distutils.core import setup
import py2exe, glob, os
origIsSystemDLL = py2exe.build_exe.isSystemDLL # save the orginal before we edit it
def isSystemDLL(pathname):
# checks if the freetype and ogg dll files are being included
if os.path.basename(pathname).lower() in ("libfreetype-6.dll", "libogg-0.dll", "sdl_ttf.dll"):
return 0
return origIsSystemDLL(pathname) # return the orginal function
py2exe.build_exe.isSystemDLL = isSystemDLL # override the default function with this one
opts = {
"py2exe": {
'includes':['board',
'config',
'evaluator',
'minimax',
'player',
'ui'],
}
}
setup (
windows=['othello.pyw'],
options=opts,
data_files = [
("res", glob.glob("res\\*.bmp"))
],
)