-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfreeze.py
35 lines (30 loc) · 895 Bytes
/
freeze.py
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
#
# Run the build process by running the command 'python setup.py build'
#
# If everything works well you should find a subdirectory in the build
# subdirectory that contains the files needed to run the application
import sys
from cx_Freeze import setup, Executable
base = None
if sys.platform == 'win32':
base = 'Win32GUI'
options = {
'build_exe': {
'includes': 'atexit,cffi,PySide2.QtXml',
'packages': 'packaging',
'namespace_packages': 'zope',
'include_files': [("custom_ui/", "custom_ui/")
],
'zip_include_packages': 'PySide2',
'optimize': 2,
}
}
executables = [
Executable('main.py', base=base)
]
setup(name='Wormhole GUI',
version='0.1',
description='Graphical interface for magic-wormhole',
options=options,
executables=executables
)