-
Notifications
You must be signed in to change notification settings - Fork 85
/
setup.py
48 lines (43 loc) · 1.84 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
#!/usr/bin/env python
# vim: set ts=4:sw=4:expandtab:
# =============================================================================
# 2013+ Copyright (c) Kirill Smorodinnikov <[email protected]>
# 2013+ Copyright (c) Alexey Ivanov <[email protected]>
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# =============================================================================
from distutils.core import setup
vstr = '0.0.1'
try:
f = open('debian/changelog')
qstr = f.readline()
vstr = '.'.join(qstr.split()[1].strip("()").split(".")[:2])
f.close()
except:
pass
print vstr
setup(name='elliptics',
version=vstr,
description='Client library, CLI and recovery tools for Elliptics',
url='http://reverbrain.com/elliptics',
package_dir={'elliptics': 'bindings/python/src',
'elliptics_recovery': 'recovery/elliptics_recovery',
'elliptics_recovery/types': 'recovery/elliptics_recovery/types',
'elliptics_recovery/utils': 'recovery/elliptics_recovery/utils'},
packages=['elliptics',
'elliptics_recovery',
'elliptics_recovery/types',
'elliptics_recovery/utils'],
data_files=[('bin', ['recovery/dnet_recovery',
'bindings/python/dnet_client',
'bindings/python/dnet_balancer'])],
license='GPLv2')