123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- 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)
|