forked from legionus/billing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
69 lines (61 loc) · 1.47 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
65
66
67
68
69
#!/usr/bin/env python
#
# setup.py
#
# Copyright (c) 2012-2013 by Alexey Gladkov
# Copyright (c) 2012-2013 by Nikolay Ivanov
#
# This file is covered by the GNU General Public License,
# which should be included with billing as the file COPYING.
#
import os
try:
from setuptools import setup
except ImportError:
from distutils import setup
def dir_expand(path):
return map(lambda n: path + '/' + n, os.listdir(path))
setup(
name = 'python-billing',
version = '1.0',
description = 'Billing Platform',
license = 'GPLv3',
platforms = 'Linux',
author = 'Alexey Gladkov',
author_email= '[email protected]',
requires = [
'msgpack',
'psycopg2',
'unittest2',
'connectionpool',
],
scripts = [
'bin/bc-calc-client',
'bin/bc-calc-server',
'bin/bc-data-pusher',
'bin/bc-data-routine',
'bin/bc-data-server',
'bin/bc-data-withdraw',
'bin/billing-acl',
'bin/billing-bootstrap',
'bin/billing-init',
'bin/task_creator',
],
package_dir = { '': 'lib' },
packages = [
# Public interface
'bc_client',
# Billing library
'bc',
'bc_jsonrpc',
'bc_wapi',
],
data_files = [
('libexec/bc', ['bin/httpd-wapi']),
('/etc', ['data/billing.conf','data/wapi-acl.conf']),
('/etc/httpd/conf.d', ['data/httpd-wapi.conf']),
('/etc/rc.d/init.d', ['data/init.d/bc-calc','data/init.d/bc-data']),
('/etc/cron.d', dir_expand('data/cron.d')),
('/usr/share/c2/gs', dir_expand('data/gs')),
],
)