forked from scaleoutsean/storagegrid-dmc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dmc_win.spec
38 lines (33 loc) · 1.03 KB
/
dmc_win.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
# -*- mode: python -*-
block_cipher = None
def get_crypto_path():
'''Auto import sometimes fails on linux'''
import Crypto
crypto_path = Crypto.__path__[0]
return crypto_path
a = Analysis(['run.py'],
pathex=['C:\dmc\storagegrid_dmc'],
binaries=[],
datas=[('static', 'static'), ('templates', 'templates'), ('dmc.version', '.'), ('LICENSE', '.')],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
#Add to the tree the pyCrypto folder
dict_tree = Tree(get_crypto_path(), prefix='Crypto', excludes=["*.pyc"])
a.datas += dict_tree
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='dmc_win',
debug=False,
strip=False,
upx=True,
console=True )