-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·66 lines (59 loc) · 2.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
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
61
62
63
64
65
66
import sys
from cx_Freeze import setup, Executable
#base = ("Win32GUI" if sys.platform == 'win32' else None)
executables = [Executable("gui.py"
#icon = "./images/rp_sq_48.ico",
#targetName = "Reddit Paper.deb",
#shortcutName = "Reddit Paper",
#shortcutDir = "DesktopFolder",
)]
included_files = ["./images", "redditpaper.py",
"/usr/local/lib/python3.4/dist-packages/praw/praw.ini",
"cacert.pem",
#"C:\\Python34\\Lib\\site.py",
#"C:\\Python34\\Lib\\os.py",
#"C:\\Python34\\Lib\\abc.py",
#"C:\\Python34\\Lib\\_weakrefset.py",
#"C:\\Python34\\Lib\\codecs.py",
#"C:\\Python34\\Lib\\encodings",
#"C:\\Python34\\Lib\\io.py",
#"C:\\Python34\\Lib\\stat.py",
#"C:\\Python34\\Lib\\ntpath.py",
#"C:\\Python34\\Lib\\genericpath.py",
#"C:\\Python34\\Lib\\_collections_abc.py",
#"C:\\Python34\\Lib\\_sitebuiltins.py",
#"C:\\Python34\\Lib\\sysconfig.py",
# for the call to redditpaper with subprocess
"/usr/bin/python3.4"]
install_requires = ["praw", "urllib.request", "bs4", "PIL", "sqlite3", "tkinter", "os", "site", "io", "encodings"]
build_exe_options = {
"include_files": included_files,
"packages": install_requires
# "include_msvcr": True
}
shortcut_table = [
("DesktopShortcut", # Shortcut
"DesktopFolder", # Directory_
"DTI Playlist", # Name
"TARGETDIR", # Component_
"[TARGETDIR]playlist.exe",# Target
None, # Arguments
None, # Description
None, # Hotkey
None, # Icon
None, # IconIndex
None, # ShowCmd
'TARGETDIR' # WkDir
)
]
msi_data = {"Shortcut": shortcut_table}
bdist_msi_options = {'data': msi_data}
setup(
name = "Reddit Paper",
version = "1.1",
author = "Cameron Gagnon",
author_email = '[email protected]',
url = "http://github.com/cameron-gagnon/reddit-paper",
executables = executables,
options = {"build_exe": build_exe_options}
)