-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
71 lines (67 loc) · 2.36 KB
/
Copy pathsetup.py
File metadata and controls
71 lines (67 loc) · 2.36 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import os
from distutils.core import setup
from distutils.sysconfig import get_python_lib
import media_nommer
long_description = open('README.rst').read()
TWISTED_PLUGIN_PATH = os.path.join(get_python_lib(), 'twisted', 'plugins')
TMP_BUILD_PATH = os.path.realpath(os.path.dirname(__file__))
NOMMER_PLUGIN_PATH = os.path.join(TMP_BUILD_PATH,
'media_nommer', 'twisted', 'plugins')
data_files = [
(
TWISTED_PLUGIN_PATH,
[os.path.join(NOMMER_PLUGIN_PATH, 'feederd.py')]
),
(
TWISTED_PLUGIN_PATH,
[os.path.join(NOMMER_PLUGIN_PATH, 'ec2nommerd.py')]
),
]
setup(
name='media-nommer',
version=media_nommer.VERSION,
description='A Python-based media encoding system, using Amazon AWS as its backbone.',
long_description=long_description,
author='DUO Interactive, LLC',
author_email='gtaylor@duointeractive.com',
license='BSD License',
url='http://duointeractive.github.com/media-nommer/',
platforms=["any"],
# Can't use this until pip install --upgrade behavior is corrected.
#install_requires=['boto', 'twisted'],
install_requires=['boto', 'qtfaststart'],
provides=['media_nommer'],
packages=[
'media_nommer',
'media_nommer.conf',
'media_nommer.core',
'media_nommer.ec2nommerd',
'media_nommer.ec2nommerd.nommers',
'media_nommer.ec2nommerd.web',
'media_nommer.ec2nommerd.web.resources',
'media_nommer.core.storage_backends',
'media_nommer.feederd',
'media_nommer.feederd.web',
'media_nommer.feederd.web.resources',
'media_nommer.utils'
],
data_files=data_files,
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Environment :: Web Environment',
'Topic :: Multimedia :: Video :: Conversion',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
try:
# This is needed to re-generate the Twisted plugin dropin.cache after install.
from twisted.plugin import IPlugin, getPlugins
list(getPlugins(IPlugin))
except ImportError:
# Probably haven't installed yet. Fail silently.
pass