Created
April 9, 2020 21:06
-
-
Save wlach/7db4d5bf62aa8440ba95a501cb994d73 to your computer and use it in GitHub Desktop.
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
# -*- mode: python ; coding: utf-8 -*- | |
block_cipher = None | |
from PyInstaller.utils.hooks import collect_all | |
datas, binaries, hiddenimports = [], [], [] | |
for pkgname in ['glean', 'glean_parser']: | |
pkg_datas, pkg_binaries, pkg_hiddenimports = collect_all(pkgname) | |
datas.extend(pkg_datas) | |
binaries.extend(pkg_binaries) | |
hiddenimports.extend(pkg_hiddenimports) | |
datas.extend([ | |
('mozregression/pings.yaml', 'mozregression'), | |
('mozregression/metrics.yaml', 'mozregression') | |
]) | |
a = Analysis(['mozregression/main.py'], | |
pathex=['/Users/wlach/src/mozregression'], | |
binaries=binaries, | |
datas=datas, | |
hiddenimports=hiddenimports, | |
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, | |
[], | |
exclude_binaries=True, | |
name='main', | |
debug=False, | |
bootloader_ignore_signals=False, | |
strip=False, | |
upx=True, | |
console=True ) | |
coll = COLLECT(exe, | |
a.binaries, | |
a.zipfiles, | |
a.datas, | |
strip=False, | |
upx=True, | |
upx_exclude=[], | |
name='main') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment