-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyinstaller.spec
49 lines (42 loc) · 1.25 KB
/
pyinstaller.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
# main.spec
# This file tells PyInstaller how to bundle your application
from PyInstaller.utils.hooks import copy_metadata
block_cipher = None
a = Analysis(
['mangotango.py'], # Entry point
pathex=['.'], # Ensure all paths are correctly included
binaries=[],
datas=[
# version file, if defined
*(
[('./VERSION', '.')]
if os.path.exists('VERSION') else []
),
# inquirer depends on readchar as a hidden dependency that requires package metadata
*copy_metadata('readchar'),
# static assets for web servers
('./app/web_static', 'app/web_static'),
('./app/web_templates', 'app/web_templates')
],
hiddenimports=[
'readchar',
'numpy',
'numpy.core.multiarray'
], # Include any imports that PyInstaller might miss
hookspath=[],
runtime_hooks=[],
excludes=[]
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='mangotango', # The name of the executable
debug=False,
strip=True,
upx=True, # You can set this to False if you don’t want UPX compression
console=True # Set to False if you don't want a console window
)