-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgh-debug.spec
51 lines (47 loc) · 2.13 KB
/
gh-debug.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
# -*- mode: python -*-
block_cipher = None
block_cipher = None
import os
from pathlib import Path
from PyInstaller.utils.hooks import exec_statement
env_path = os.environ['CONDA_PREFIX']
current_path = os.getcwd()
home_path = str(Path.home())
mpl_data_dir = exec_statement("import matplotlib; print(matplotlib._get_data_path())")
linalg_dir = os.path.join(env_path, 'lib\\site-packages\\numpy\\linalg\\')
a = Analysis(['gh.py'],
pathex=[current_path, os.path.join(env_path, '\\Library\\bin')],
binaries=[(os.path.join(linalg_dir, "_umath_linalg.cp37-win_amd64.pyd"), "numpy\\linalg"),
(os.path.join(linalg_dir, "lapack_lite.cp37-win_amd64.pyd"), "numpy\\linalg"),
(os.path.join(env_path, "api-ms-win-crt-stdio-l1-1-0.dll"), "."),
(os.path.join(env_path, "api-ms-win-crt-heap-l1-1-0.dll"), "."),
(os.path.join(env_path, "api-ms-win-crt-math-l1-1-0.dll"), "."),
(os.path.join(env_path, "api-ms-win-crt-runtime-l1-1-0.dll"), "."),
(os.path.join(env_path, "api-ms-win-crt-string-l1-1-0.dll"), "."),
(os.path.join(env_path, "api-ms-win-crt-convert-l1-1-0.dll"), ".")
],
datas=[('matplotlibrc', '.config'), (mpl_data_dir, 'matplotlib\\mpl-data')],
hiddenimports=['numpy', 'packaging', 'matplotlib', 'tkinter', 'matplotlib.backends.backend_Qt5Agg', 'gishelper.ui', 'tkinter.filedialog', 'PyQt5'],
#hookspath=['hooks'],
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='gh',
debug=True,
strip=False,
upx=False,
console=True , icon='assets\\map.ico')
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=False,
name='gh')