Debian Codegraph @

b2.spec.template

raw
1 # -*- mode: python ; coding: utf-8 -*-
2
3 from PyInstaller.utils.hooks import collect_data_files, copy_metadata
4
5 block_cipher = None
6
7 # Data from "python-dateutil" is added because of
8 # https://github.com/Backblaze/B2_Command_Line_Tool/issues/689
9 datas = copy_metadata('b2') + collect_data_files('dateutil')
10
11 a = Analysis(['b2/_internal/${VERSION}/__main__.py'],
12 pathex=['.'],
13 binaries=[],
14 datas=datas,
15 hiddenimports=['pkg_resources.py2_warn'],
16 hookspath=['pyinstaller-hooks'],
17 runtime_hooks=[],
18 win_no_prefer_redirects=False,
19 win_private_assemblies=False,
20 cipher=block_cipher,
21 noarchive=False)
22
23 pyz = PYZ(a.pure,
24 a.zipped_data,
25 cipher=block_cipher)
26
27 exe = EXE(pyz,
28 a.scripts,
29 a.binaries,
30 a.zipfiles,
31 a.datas,
32 [],
33 name='${NAME}',
34 debug=False,
35 bootloader_ignore_signals=False,
36 strip=False,
37 upx=True,
38 upx_exclude=[],
39 runtime_tmpdir=None,
40 console=True)