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)