This repository has been archived by the owner on Jul 30, 2022. It is now read-only.
generated from caltechlibrary/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyinstaller-win32.spec
67 lines (58 loc) · 2.78 KB
/
pyinstaller-win32.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# -*- mode: python -*-
# =============================================================================
# @file pyinstaller-win32.spec
# @brief Spec file for PyInstaller for Windows
# @author Michael Hucka
# @license Please see the file named LICENSE in the project directory
# @website https://github.com/caltechlibrary/checkit
# =============================================================================
import importlib
from os import path
import sys
# The addition of setup.cfg is so that our __init__.py code can work even
# when bundled into the PyInstaller-created application.
data_files = [ ('checkit\data\help.html', 'checkit\data'),
('setup.cfg', 'checkit\data') ]
# The "colorful" package has a data file that doesn't get picked up
# automatically, so we have to deal with it ourselves.
colorful_package = importlib.import_module('colorful')
colorful_path = path.dirname(colorful_package.__file__)
data_files += [(path.join(colorful_path, 'data', 'rgb.txt'), 'colorful\data')]
# The rest is pretty normal PyInstaller stuff.
configuration = Analysis([r'checkit\__main__.py'],
pathex = ['.'],
binaries = [],
datas = data_files,
hiddenimports = ['apiclient', 'keyring.backends',
'wx._html', 'wx._xml',
'win32timezone', 'winreg'],
hookspath = [],
runtime_hooks = [],
excludes = [],
win_no_prefer_redirects = False,
win_private_assemblies = False,
cipher = None,
)
application_pyz = PYZ(configuration.pure,
configuration.zipped_data,
cipher = None,
)
executable = EXE(application_pyz,
configuration.scripts,
configuration.binaries,
configuration.zipfiles,
configuration.datas,
name = 'CheckIt',
icon = r'dev\icons\generated-icons\checkit-icon.ico',
debug = False,
strip = False,
upx = True,
runtime_tmpdir = None,
console = False,
)
app = BUNDLE(executable,
name = 'CheckIt.exe',
icon = r'dev\icons\generated-icons\checkit-icon.ico',
bundle_identifier = None,
info_plist = {'NSHighResolutionCapable': 'True'},
)