diff options
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..dc8d6ee --- /dev/null +++ b/setup.py @@ -0,0 +1,53 @@ +import os +import sys + +version = '3.0.2' + +# platform-independent arguments for setup() +setup_args = { + 'name': 'librevideoconverter', + 'description': 'Simple video converter for WebM (vp8), Ogg Theora, MP4 and others, fork of Miro Video Converter', + 'author': 'Jesus Eduardo (Heckyel)', + 'author_email': 'heckyel@openmailbox.org', + 'url': 'https://notabug.org/Heckyel/LibreVideoConverter', + '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) |