-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
34 lines (24 loc) · 1.44 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
import sys
import setuptools
from cx_Freeze import setup, Executable
import os
os.environ['TCL_LIBRARY'] = r'C:\Users\John Ward\AppData\Local\Programs\Python\Python36\tcl\tcl8.6'
os.environ['TK_LIBRARY'] = r'C:\Users\John Ward\AppData\Local\Programs\Python\Python36\tcl\tk8.6'
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["os","tkinter","PIL","time","decimal","math","custom","_input", "updater",
"BotController","multiprocessing", "docs"],
"include_files": ["LICENSE.txt", ("driver", "driver"), ("plugins", "plugins"), ("config", "config"),
os.path.join(r'C:\Users\John Ward\AppData\Local\Programs\Python\Python36\DLLs', 'tcl86t.dll'),
os.path.join(r'C:\Users\John Ward\AppData\Local\Programs\Python\Python36\DLLs', 'tk86t.dll')],
'include_msvcr': True}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup( name = "Sparlab",
version = "1.0.2",
description = "Sparlab",
author = "John Ward",
options = {"build_exe": build_exe_options},
executables = [Executable("sparlab.py", base=base, icon = os.path.join(r'C:\Users\John Ward\Desktop\sparlab\plugins\images', 'sparlab_logo.ico'))])