-
Notifications
You must be signed in to change notification settings - Fork 0
/
rc_gui.spec
49 lines (43 loc) · 1.92 KB
/
rc_gui.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
# -*- mode: python -*-
from kivy.deps import sdl2, glew #, gstreamer
# steps to build:
# (1) all needed dependecies to run the .py must be installed
# (2) -> setup tools must be downgraded to version 19.2
# pip install --ignore-installed setuptools==19.2
# (3) copy ".\GitHubRepositoryClassifier\gui_prototype\prototype\__pycache__\__init__.cpython-35.pyc" to
# ".\GitHubRepositoryClassifier\gui_prototype\prototype\__init__.pyc"
# (5) run "python -m compile all"
# (4) now you can build .exe via:
# "python -m PyInstaller rc_gui.spec"
block_cipher = None
a = Analysis(['.\\gui_prototype\\rc_gui.py'],
pathex=['G:\\Programming\\Projects\\Python\\PyInstallerTest\\GithubClassifier'],
datas=None,
binaries=None,
# 'wordcloud', 'wordcloud.WordCloud', 'wordcloud.ImageColorGenerator' is not recognized
# 'kivy.garden.matplotlib', 'kivy.garden', -> are used locally now used to access the home directory
hiddenimports=['matplotlib.pyplot', 'cython', 'sklearn', 'sklearn.neighbors.typedefs', 'os.path.expanduser', 'win32timezone'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='rc_gui',
debug=False,
strip=False,
upx=True,
console=True , icon='.\\gui_prototype\\media\\icons\\rc_icon.ico')
coll = COLLECT(exe, Tree('G:\\Programming\\Projects\\Python\\PyInstallerTest\\GithubClassifier\\gui_prototype\\'),
a.binaries,
a.zipfiles,
a.datas,
*[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
strip=False,
upx=True,
name='rc_gui')