forked from MakeICT/event-creator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.spec
53 lines (45 loc) · 1.12 KB
/
build.spec
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
# -*- mode: python -*-
import platform
version = '2.2.0'
if platform.system() == 'Linux':
platformExt = 'linux'
else:
platformExt = 'windows.exe'
binaryName = 'event-creator-v%s-%s' % (version, platformExt)
# meetup bug: when freezing, api spec files aren't distributed automatically
import meetup
meetupAPIspecs = os.path.join(os.path.dirname(meetup.__file__), 'api_specification', '*.json')
a = Analysis(
['src/main.py'],
pathex=[],
binaries=None,
datas=[(meetupAPIspecs, 'meetup/api_specification')],
hiddenimports=[
'httplib2',
'apiclient',
'html2text',
'meetup', 'meetup.api', 'requests', 'requests.packages', 'requests.packages.urllib3',
'selenium', 'selenium.webdriver', 'selenium.webdriver.support', 'selenium.webdriver.support.expected_conditions',
'email', 'email.mime', 'email.mime.text',
],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=None
)
pyz = PYZ(a.pure, a.zipped_data)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name=binaryName,
debug=False,
strip=False,
upx=True,
console=True
)
print(binaryName)