-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
30 lines (28 loc) · 895 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
30
import os.path, cx_Freeze
### setting environment variables dynamically to void key error on local machines
PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__))
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")
executables = [cx_Freeze.Executable("Race_the_car.py")]
cx_Freeze.setup(
name="RacetheCar",
options={
"build_exe": {
"packages": [
"pygame",
"sys",
"pygame.surfarray",
"numpy",
"pygame._numpysurfarray",
],
"include_files": [
"red2.jpg",
"blue2.jpg",
"car_11.png",
"car_22.png",
"hm2.jpg",
],
}
},
executables=executables,
)