forked from plivo/plivoframework
/
setup.py
66 lines (57 loc) · 2 KB
/
setup.py
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
from setuptools import find_packages
import sys
if sys.prefix == '/usr':
etc_prefix = '/etc'
else:
etc_prefix = sys.prefix + '/etc'
author = "Plivo Team"
author_email = "hello@plivo.org"
maintainer = "Plivo Team"
maintainer_email = "hello@plivo.org"
license = "MPL 1.1"
setup_args = {
'name':'plivo',
'version':'0.1.0',
'description':'Plivo - Rapid Communication Application Development Framework',
'url':'http://github.com/plivo/plivo',
'author':author,
'author_email':author_email,
'maintainer':maintainer,
'maintainer_email':maintainer_email,
'platforms':['linux'],
'long_description':'Framework to create communication applications rapidly in any language',
'package_dir':{'': 'src'},
'packages':find_packages('src'),
'include_package_data':True,
'scripts':['src/bin/plivo-rest',
'src/bin/plivo-outbound',
'src/bin/plivo-postinstall',
'src/bin/plivo'],
'data_files':[(etc_prefix+'/plivo/', ['src/config/default.conf']),
],
'keywords':"telecom voip telephony freeswitch ivr rest",
'license':license,
'zip_safe':False,
'classifiers':[
"Programming Language :: Python",
"Operating System :: POSIX",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Communications",
"Topic :: Multimedia",
"Environment :: Console",
"Environment :: Web Environment",
"Programming Language :: Python",
"Intended Audience :: Developers",
"Intended Audience :: Telecommunications Industry",
"License :: OSI Approved :: Mozilla Public License 1.1 (MPL 1.1)",
"Development Status :: 1 - Beta"]
}
try:
from setuptools import setup
setup_args['install_requires'] = ['gevent', 'flask']
except ImportError:
from distutils.core import setup
setup_args['requires'] = ['gevent', 'flask']
# setup
setup(**setup_args)