-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli-single.spec
More file actions
50 lines (41 loc) · 1.16 KB
/
cli-single.spec
File metadata and controls
50 lines (41 loc) · 1.16 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
# -*- mode: python -*-
block_cipher = None
import os, site
from distutils.sysconfig import get_python_lib
import glob
site_packages_dir = get_python_lib()
scrypt_so = None
try:
print("Site Packages: "+str(site.getsitepackages()))
for sp in site.getsitepackages():
for so in glob.glob(sp+'/_scrypt*'):
scrypt_so = so
site_packages_dir = site.getsitepackages()[1]
except:
pass
print(f"Bundling scrypt so: {scrypt_so}")
a = Analysis(['cli.py'],
pathex=[os.getcwd()],
binaries=[],
datas=[],
hiddenimports=['queue'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
a.binaries.append(('_scrypt', scrypt_so, 'EXTENSION'))
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
[],
a.zipfiles,
a.datas,
name='ServerLessSecretsManagerCLI',
debug=False,
strip=False,
upx=True,
console=True )