|
1 | 1 | # -*- mode: python -*- |
2 | 2 | # vi: set ft=python : |
3 | | - |
4 | 3 | import os |
5 | 4 |
|
6 | 5 | import aw_core |
7 | | -aw_core_path = os.path.dirname(aw_core.__file__) |
8 | | - |
9 | 6 | import flask_restx |
| 7 | + |
| 8 | +aw_core_path = os.path.dirname(aw_core.__file__) |
10 | 9 | restx_path = os.path.dirname(flask_restx.__file__) |
11 | 10 |
|
| 11 | +name = "aw-server" |
12 | 12 | block_cipher = None |
13 | 13 |
|
14 | 14 |
|
15 | | -a = Analysis(['__main__.py'], |
16 | | - pathex=[], |
17 | | - binaries=None, |
18 | | - datas=[ |
19 | | - ('aw_server/static', 'aw_server/static'), |
20 | | - |
21 | | - (os.path.join(restx_path, 'templates'), 'flask_restx/templates'), |
22 | | - (os.path.join(restx_path, 'static'), 'flask_restx/static'), |
23 | | - (os.path.join(aw_core_path, 'schemas'), 'aw_core/schemas') |
24 | | - ], |
25 | | - hiddenimports=[], |
26 | | - hookspath=[], |
27 | | - runtime_hooks=[], |
28 | | - excludes=[], |
29 | | - win_no_prefer_redirects=False, |
30 | | - win_private_assemblies=False, |
31 | | - cipher=block_cipher) |
32 | | -pyz = PYZ(a.pure, a.zipped_data, |
33 | | - cipher=block_cipher) |
34 | | -exe = EXE(pyz, |
35 | | - a.scripts, |
36 | | - exclude_binaries=True, |
37 | | - name='aw-server', |
38 | | - debug=False, |
39 | | - strip=False, |
40 | | - upx=True, |
41 | | - console=True ) |
42 | | -coll = COLLECT(exe, |
43 | | - a.binaries, |
44 | | - a.zipfiles, |
45 | | - a.datas, |
46 | | - strip=False, |
47 | | - upx=True, |
48 | | - name='aw-server') |
| 15 | +a = Analysis( |
| 16 | + ["__main__.py"], |
| 17 | + pathex=[], |
| 18 | + binaries=None, |
| 19 | + datas=[ |
| 20 | + ("aw_server/static", "aw_server/static"), |
| 21 | + (os.path.join(restx_path, "templates"), "flask_restx/templates"), |
| 22 | + (os.path.join(restx_path, "static"), "flask_restx/static"), |
| 23 | + (os.path.join(aw_core_path, "schemas"), "aw_core/schemas"), |
| 24 | + ], |
| 25 | + hiddenimports=[], |
| 26 | + hookspath=[], |
| 27 | + runtime_hooks=[], |
| 28 | + excludes=[], |
| 29 | + win_no_prefer_redirects=False, |
| 30 | + win_private_assemblies=False, |
| 31 | + cipher=block_cipher, |
| 32 | +) |
| 33 | +pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) |
| 34 | +exe = EXE( |
| 35 | + pyz, |
| 36 | + a.scripts, |
| 37 | + exclude_binaries=True, |
| 38 | + name=name, |
| 39 | + debug=False, |
| 40 | + strip=False, |
| 41 | + upx=True, |
| 42 | + console=True, |
| 43 | +) |
| 44 | +coll = COLLECT( |
| 45 | + exe, a.binaries, a.zipfiles, a.datas, strip=False, upx=True, name="aw-server" |
| 46 | +) |
0 commit comments