aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
blob: 01b6f447556db350b435f6892b3a5bada5c0272d (plain)
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 = '1.0.1'

# platform-independent arguments for setup()
setup_args = {
    'name': 'librevideoconverter',
    'description': 'A simple video converter for WebM (vp8, vp9), Ogg Theora, MP4 and others',
    'author': 'Jesus Eduardo (Heckyel)',
    'author_email': 'heckyel@riseup.net',
    'url': 'https://notabug.org/heckyel/librevideoconverter',
    'license': 'GPL',
    'version': version,
    'packages': [
        'lvc',
        'lvc.osx',
        'lvc.qtfaststart',
        'lvc.resources',
        'lvc.ui',
        'lvc.widgets',
        'lvc.widgets.gtk',
        'lvc.widgets.osx',
        'lvc.windows',
    ],
    'package_data': {
        'lvc.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)