~heckyel/librevideoconverter

ref: 8f61ee8ed81090e8df2341bd02ab5f5d9a12f110 librevideoconverter/setup.py -rw-r--r-- 1.3 KiB
8f61ee8e — Jesús basicconverters.py: improve titles of conversions options 1 year, 7 months ago
                                                                                
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
import os
import sys

from lvc.variables import (
    __version__
)


# platform-independent arguments for setup()
setup_args = {
    'name': 'librevideoconverter',
    'description': 'A simple video converter for WebM, Ogg Theora and others',
    'author': 'Jesus E.',
    'author_email': 'heckyel@riseup.net',
    'url': 'https://notabug.org/heckyel/librevideoconverter',
    'license': 'GPL-3',
    '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)