This repository was archived by the owner on Oct 26, 2020. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathcompile_windows.py
More file actions
91 lines (71 loc) · 2.78 KB
/
Copy pathcompile_windows.py
File metadata and controls
91 lines (71 loc) · 2.78 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
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# -*- coding: utf-8 -*-
#
# This file is part of Divergence Meter
#
# Divergence Meter is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# Divergence Meter is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LoL Server Status. If not, see <http://www.gnu.org/licenses/>.
#
# Source: <https://github.com/LuqueDaniel/Divergence-Meter.git>
#LoL Server status imports
from divergence_meter import resources
import divergence_meter
#setuptools imports
from setuptools import find_packages
#distutils.core imports
from distutils.core import setup
#py2exe
import py2exe
packages = find_packages()
information = {'script': 'divergence_meter.py',
'Version': divergence_meter.__version__,
'copyright': divergence_meter.__license__,
'name': divergence_meter.__prj__,
'dest_base': divergence_meter.__prj__,
'icon_resources': [(1, 'windows_icon.ico')]}
#Add resources files
resources_files = [('images', []), ('resources', [])]
#Add images
for img in resources.IMAGES:
resources_files[0][1].append(img)
#Add icon
resources_files[0][1].append(resources.main_icon)
#Add styles
resources_files[1][1].append(resources.style_file)
parameters = {
'name': divergence_meter.__prj__,
'version': divergence_meter.__version__,
'description': divergence_meter.__docu__,
'author': divergence_meter.__author__,
'author_email': divergence_meter.__mail__,
'license': divergence_meter.__license__,
'windows': [information],
'data_files': resources_files,
'zipfile': None,
'options': {
'py2exe': {
'dll_excludes': ['MSVCP90.dll'],
'compressed': 1,
'optimize': 2,
'includes': ['sip'],
'excludes': ['bsddb', 'curses', 'email',
'pywin.debugger', 'pywin.debugger.dbgcon',
'pywin.dialogs'],
'packages': packages,
'bundle_files': 1,
'dist_dir': 'dist',
'xref': False,
'skip_archive': False,
'ascii': False}
}
}
setup(**parameters)