-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgambit-pairing.spec
More file actions
62 lines (57 loc) · 1.3 KB
/
gambit-pairing.spec
File metadata and controls
62 lines (57 loc) · 1.3 KB
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
# -*- mode: python ; coding: utf-8 -*-
import os
import sys
from PyInstaller.building.build_main import Analysis, PYZ, EXE
# Compute the spec directory. When PyInstaller executes a spec it may exec()
# it in a namespace without __file__; fall back to sys.argv[0] in that case.
if '__file__' in globals():
_spec_dir = os.path.abspath(os.path.dirname(__file__))
else:
_spec_dir = os.path.abspath(os.path.dirname(sys.argv[0]))
sys.path.insert(0, _spec_dir)
from pyinstaller_common import (
PATHEX,
DATAS,
BINARIES,
HIDDENIMPORTS,
HOOKSPATH,
RUNTIME_HOOKS,
EXCLUDES,
NOARCHIVE,
ICON,
APP_NAME,
)
a = Analysis(
['src/gambitpairing/__main__.py'],
pathex=PATHEX,
binaries=BINARIES,
datas=DATAS,
hiddenimports=HIDDENIMPORTS,
hookspath=HOOKSPATH,
runtime_hooks=RUNTIME_HOOKS,
excludes=EXCLUDES,
noarchive=NOARCHIVE,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name=APP_NAME,
icon=ICON,
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
optimize=2,
)