-
Notifications
You must be signed in to change notification settings - Fork 0
/
Setup.py
35 lines (30 loc) · 1.4 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
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 14 01:13:02 2019
@author: prach
"""
import cx_Freeze
import os.path
import sys
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("BMXCrashLoop.py")]
cx_Freeze.setup(
name = "BMXCrashLoop",
options = {"build_exe": {"packages":["pygame"],
"include_files":["racecar.png",
"fire1.jpg",
"Game.wav",
"PressStart2P-Regular.ttf",
"Smash.wav",
"Start.wav",
"stop1.jpg",
"stop2.jpg",
"timesbi.ttf",
"tree1.jpg",
(os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tk86t.dll'), os.path.join('lib', 'tk86t.dll')),
(os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tcl86t.dll'), os.path.join('lib', 'tcl86t.dll')),
]}},
executables = executables
)