-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (41 loc) · 976 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from cx_Freeze import setup, Executable
import sys, os
os.environ['TCL_LIBRARY'] = "C:\\Python\\Python36-32\\tcl\\tcl8.6"
os.environ['TK_LIBRARY'] = "C:\\Python\\Python36-32\\tcl\\tk8.6"
base=None
packages = [
"idna",
"telebot",
"feedparser",
"urllib3",
"tweepy",
"requests",
"sqlite3",
]
include_files = [
"bot/bot_exceptions.py",
"bot/telegrambot.py",
"database/VulnParserDB.db",
"config.py",
"rsslinks.txt"
]
target = Executable(
script='parser.py',
base=base,
icon="icon.ico"
)
options = {
"packages":packages,
"include_files":include_files
}
#-------------------------------------------------------------------------
if sys.platform=='win32':
base= None
setup(
name = 'FeedParser',
version = '0.1.1',
author = "Dontsov Stas",
description = "Parser for collecting RSS and Twitter feeds",
options = {"build_exe": options},
executables = [target]
)