forked from pyinstaller/pyinstaller
/
test_multipackage1.spec
55 lines (47 loc) · 1.66 KB
/
test_multipackage1.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
46
47
48
49
50
51
52
53
54
# -*- mode: python -*-
#-----------------------------------------------------------------------------
# Copyright (c) 2013-2021, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License (version 2
# or later) with exception for distributing the bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#
# SPDX-License-Identifier: (GPL-2.0-or-later WITH Bootloader-exception)
#-----------------------------------------------------------------------------
# MULTIPROCESS FEATURE: file A (onefile pack) depends on file B (onefile pack).
import os
SCRIPT_DIR = 'multipackage-scripts'
__testname__ = 'test_multipackage1'
__testdep__ = 'multipackage1_B'
a = Analysis([os.path.join(SCRIPT_DIR, __testname__ + '.py')],
hookspath=[os.path.join(SPECPATH, SCRIPT_DIR, 'extra-hooks')],
pathex=['.'])
b = Analysis([os.path.join(SCRIPT_DIR, __testdep__ + '.py')],
hookspath=[os.path.join(SPECPATH, SCRIPT_DIR, 'extra-hooks')],
pathex=['.'])
MERGE((b, __testdep__, __testdep__), (a, __testname__, __testname__))
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
a.dependencies,
name=os.path.join('dist', __testname__),
debug=True,
strip=False,
upx=False,
console=1 )
pyzB = PYZ(b.pure)
exeB = EXE(pyzB,
b.scripts,
b.binaries,
b.zipfiles,
b.datas,
b.dependencies,
name=os.path.join('dist', __testdep__),
debug=True,
strip=False,
upx=False,
console=1 )