Skip to content

Commit

Permalink
Add pyinstaller spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mlech-reef committed Jun 18, 2020
1 parent a690be2 commit d364939
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions b2.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# -*- mode: python ; coding: utf-8 -*-

block_cipher = None

a = Analysis(['b2/console_tool.py'],
pathex=['.'],
binaries=[],
datas=[],
hiddenimports=['pkg_resources.py2_warn'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)

pyz = PYZ(a.pure,
a.zipped_data,
cipher=block_cipher)

exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='b2',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True)
4 changes: 4 additions & 0 deletions b2/console_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1612,3 +1612,7 @@ def main():
logging.shutdown()

os._exit(exit_status)


if __name__ == '__main__':
main()

0 comments on commit d364939

Please sign in to comment.