This repository was archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
26 lines (22 loc) · 1.22 KB
/
Copy pathsetup.py
File metadata and controls
26 lines (22 loc) · 1.22 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
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
'includes': ['sprites', 'utils', 'sni_pb2', 'sni_pb2_grpc', 'transfer'],
'excludes': ['mkl', 'babel', 'matplotlib', 'Cython', 'numpy', 'pandas', 'PySide2', 'PyQt5'],
'zip_include_packages': ['*'],
'zip_exclude_packages': ['subprocess', 'pyz3r', 'random' ,'os', 'shutil', 'tkinter', 'threading', 'json', 'asyncio', 'PIL', 'urllib.request', 'io', 'grpc', 'psutil', 'socket', 'requests'],
'include_files': [('data/icon.ico', 'data/icon.ico'), ('data/sprites.txt', 'data/sprites.txt'), ('data/version.txt', 'data/version.txt')],
'optimize': 2,
}
# PIL and io not necessary while sprites are not included
# GUI applications require a different base on Windows (the default is for
# a console application).
base = None
# if sys.platform == 'win32':
# base = 'Win32GUI'
setup( name = 'ALTTPR Helper',
version = '2.2',
description = 'Helper to rename seed according to MSU and to start side programs',
options = {'build_exe': build_exe_options},
executables = [Executable('gui.py', base=base, icon='data/icon.ico', target_name='Helper')])