forked from civictechdc/mango-tango-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue civictechdc#70: disable pyinstaller strip for windows
- Loading branch information
Showing
3 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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=False, | ||
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 | ||
) |