-
Notifications
You must be signed in to change notification settings - Fork 36
/
setup.py
53 lines (47 loc) · 1.35 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
import os
import sys
version = '3.0.2'
# platform-independent arguments for setup()
setup_args = {
'name': 'mirovideoconverter',
'description': 'Miro Video Converter is super simple way to convert almost any video to MP4, WebM (vp8), Ogg Theora, or for Android, iPhone, and more.',
'author': 'Participatory Culture Foundation',
'author_email': '[email protected]',
'url': 'http://www.mirovideoconverter.com/',
'license': 'GPL',
'version': version,
'packages': [
'mvc',
'mvc.osx',
'mvc.qtfaststart',
'mvc.resources',
'mvc.ui',
'mvc.widgets',
'mvc.widgets.gtk',
'mvc.widgets.osx',
'mvc.windows',
],
'package_data': {
'mvc.resources': [
'converters/*.py',
'images/*.*',
],
},
}
if sys.platform.startswith("linux"):
platform = 'linux'
elif sys.platform.startswith("win32"):
platform = 'windows'
elif sys.platform.startswith("darwin"):
platform = 'osx'
else:
sys.stderr.write("Unknown platform: %s" % sys.platform)
root_dir = os.path.abspath(os.path.dirname(__file__))
setup_dir = os.path.join(root_dir, 'setup-files', platform)
script_vars = {
'VERSION': version,
'ROOT_DIR': root_dir,
'SETUP_DIR': setup_dir,
'SETUP_ARGS': setup_args,
}
execfile(os.path.join(setup_dir, 'setup.py'), script_vars)