-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (54 loc) · 1.99 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
import os
import sys
from cx_Freeze import setup, Executable
PYTHON_INSTALL_DIR = os.path.join("C:\\Users", "OzAli", "Anaconda3")
os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6')
os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6')
base = None
if sys.platform == "win32":
base = "Win32GUI"
buildOptions = dict(packages=["pygame",
"xcape",
"xcape.common",
"xcape.components",
"xcape.engines",
"xcape.entities"],
excludes=["tkinter",
"email",
"html",
"http",
"xml",
"xmlrpc",
"lib2to3",
"json",
"ctypes",
"multiprocessing",
"pydoc_data",
"urllib",
"distutils",
"logging",
"unittest",
"test",
"nose",
"numpy",
"scipy",
"curses",
],
include_files=["README.md",
"LICENSE.txt",
"sfx/",
"images/",
"extra/"],
build_exe="build")
executables = [
Executable('main.py',
targetName="xcape.exe",
base=base,
icon=os.path.join("images", "icons", "assets", "ico", "1.ico"))
]
setup(name='xcape',
version='2.1',
description='A game (platformer) made using a simple engine built on pygame',
options=dict(build_exe=buildOptions),
executables=executables
)