-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (26 loc) · 1.02 KB
/
setup.py
File metadata and controls
29 lines (26 loc) · 1.02 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
27
28
29
from cx_Freeze import setup, Executable
import sys
# Dependencies are automatically detected, but it might need
# fine tuning.
company_name = 'slg'
product_name = 'pg'
bdist_msi_options = {
'add_to_path': False,
'initial_target_dir': r'[ProgramFilesFolder]\%s\%s' % (company_name, product_name),
'upgrade_code': '{3FD91D28-16DF-45E3-904A-6B65F1D9CBA7}'
}
buildOptions = dict(packages=[], excludes=['html', 'email', 'socket', 'bz2', 'ssl', 'unicodedate'],
include_files=['data/', 'config/'], icon='icon.ico', optimize=2)
base = 'Win32GUI' if sys.platform == 'win32' else None
tname = 'pg.exe' if sys.platform == 'win32' else 'pg'
version = '0.1.3'
executables = [
Executable('main.py', base=base, targetName=tname, appendScriptToExe=True, compress=True,)
]
setup(name='pg',
version=version,
description='simple game test',
author='Den',
author_email='denis@ranneft.ru',
options=dict(build_exe=buildOptions, bdist_msi=bdist_msi_options),
executables=executables)