forked from artsy/hokusai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hokusai.spec
45 lines (40 loc) · 1.33 KB
/
hokusai.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
# -*- mode: python -*-
import platform
if platform.system() == "Darwin":
from PyInstaller.utils.hooks import exec_statement
cert_datas = exec_statement("""
import ssl
print(ssl.get_default_verify_paths().cafile)""").strip().split()
cert_datas = [(f, 'lib') for f in cert_datas]
else:
cert_datas = []
block_cipher = None
import sys
if sys.version_info[0] >= 3:
hidden_imports = ['configparser']
else:
hidden_imports = ['ConfigParser']
a = Analysis(['bin/hokusai'],
pathex=['.'],
binaries=[],
datas=[('./hokusai/templates/*.j2', 'hokusai/templates/'), ('./hokusai/templates/.dockerignore.j2', 'hokusai/templates/'), ('./hokusai/templates/hokusai/*.j2', 'hokusai/templates/hokusai/'), ('./hokusai/VERSION', 'hokusai/')] + cert_datas,
hiddenimports=hidden_imports,
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='hokusai',
debug=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=True )