-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
136 lines (124 loc) · 4.48 KB
/
setup.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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#!/usr/bin/env python
import site
import sys
import os
from cx_Freeze import setup, Executable
# This is a list of files that cx_freeze includes in the build. Each
# entry is a tuple of source and destination.
include_files = []
# Usually C:\Python27\lib\site-packages\gnome
gnome_dir = os.path.join(site.getsitepackages()[1], "gnome")
# Required Gnome DLLs
gnome_dlls = ['libaerial-0.dll',
'libatk-1.0-0.dll',
'libcairo-gobject-2.dll',
'libcurl-4.dll',
'libffi-6.dll',
'libfftw3.dll',
'libfluidsynth-1.dll',
'libfontconfig-1.dll',
'libfreetype-6.dll',
'libgdk-3-0.dll',
'libgdk_pixbuf-2.0-0.dll',
'libgio-2.0-0.dll',
'libgirepository-1.0-1.dll',
'libglib-2.0-0.dll',
'libgmodule-2.0-0.dll',
'libgnutls-26.dll',
'libgobject-2.0-0.dll',
'libgraphene-1.0-0.dll',
'libgstapp-1.0-0.dll',
'libgstaudio-1.0-0.dll',
'libgstbadbase-1.0-0.dll',
'libgstbadvideo-1.0-0.dll',
'libgstbase-1.0-0.dll',
'libgstbasecamerabinsrc-1.0-0.dll',
'libgstcodecparsers-1.0-0.dll',
'libgstcontroller-1.0-0.dll',
'libgstfft-1.0-0.dll',
'libgstgl-1.0-0.dll',
'libgstmpegts-1.0-0.dll',
'libgstnet-1.0-0.dll',
'libgstpbutils-1.0-0.dll',
'libgstphotography-1.0-0.dll',
'libgstreamer-1.0-0.dll',
'libgstriff-1.0-0.dll',
'libgstrtp-1.0-0.dll',
'libgstrtsp-1.0-0.dll',
'libgstsdp-1.0-0.dll',
'libgsttag-1.0-0.dll',
'libgsturidownloader-1.0-0.dll',
'libgstvideo-1.0-0.dll',
'libgtk-3-0.dll',
'libharfbuzz-gobject-0.dll',
'libidn-11.dll',
'libintl-8.dll',
'libjack.dll',
'libjasper-1.dll',
'libjpeg-8.dll',
'libopenexr-2.dll',
'libopenjp2.dll',
'liborc-0.4-0.dll',
'liborc-test-0.4-0.dll',
'libp11-kit-0.dll',
'libpango-1.0-0.dll',
'libpangocairo-1.0-0.dll',
'libpangoft2-1.0-0.dll',
'libpangowin32-1.0-0.dll','libpng16-16.dll',
'libproxy.dll',
'librsvg-2-2.dll',
'libsoup-2.4-1.dll',
'libsqlite3-0.dll',
'libvisual-0.4-0.dll',
'libwebp-5.dll',
'libwinpthread-1.dll',
'libxmlxpat.dll',
'libzzz.dll'
]
for dll in gnome_dlls:
include_files.append((os.path.join(gnome_dir, dll), dll))
# We need some more Gnome files (theme, icons, translation, ...).
gnome_folders = ['etc\\fonts',
'etc\\gtk-3.0',
'lib\\girepository-1.0',
'lib\\gstreamer-1.0',
'lib\\gst-validate-launcher',
'share\\glib-2.0',
'share\\icons\\Adwaita',
'share\\icons\\hicolor',
'share\\locale\\de',
'share\\locale\\en',
'share\\themes\\Vertex-Light',
]
for folder in gnome_folders:
include_files.append((os.path.join(gnome_dir, folder), folder))
include_files.append((os.path.join(gnome_dir, 'license'), 'license-gnome'))
def filter_file(file_):
return (file_.endswith('.glade') or
file_.endswith('.png') or
file_.endswith('.svg') or
file_.endswith('.mo'))
base = None
# Do not open the console while running SubSynco.
if sys.platform == "win32":
base = "Win32GUI"
executables = [
Executable("leastfun.py", base=base )
]
build_options = {
'build_exe': 'build',
'compressed': False,
'includes': ['gi', 'cairo', 'sympy', 'matplotlib', 'numpy', 'tkinter', 'reportlab', 'copy'],
'packages': ['gi', 'cairo', 'sympy', 'matplotlib', 'numpy', 'tkinter', 'reportlab', 'copy'],
'include_files': []
}
setup(name = "noether",
version = "0.2.0",
description = 'Project',
author = 'deviantfero',
license = 'GPL-3',
platforms = 'all',
url='http://github.com/deviantfero',
options = {'build_exe': build_options},
executables = executables
)