forked from eevans/pycassa
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
43 lines (35 loc) · 1.18 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
__version_info__ = (0, 3, 0)
__version__ = '.'.join([str(v) for v in __version_info__])
"""pycassa is a Cassandra library with the following features:
1. Auto-failover single or thread-local connections
2. A simplified version of the thrift interface
3. A method to map an existing class to a Cassandra ColumnFamily.
4. Support for SuperColumns
"""
from distutils.core import setup
import sys
optional_packages = []
flags = [('--cassandra', 'cassandra'),
('-cassandra', 'cassandra')]
for flag, package in flags:
if flag in sys.argv:
optional_packages.append(package)
sys.argv.remove(flag)
setup(
name = 'pycassa',
version = __version__,
author = 'Jonathan Hseu',
author_email = '[email protected]',
description = 'Simple python library for Cassandra',
long_description = __doc__,
url = 'http://github.com/vomjom/pycassa',
download_url = 'http://github.com/vomjom/pycassa',
license = 'MIT',
keywords = 'cassandra client db distributed thrift',
packages = ['pycassa']+optional_packages,
platforms = 'any',
install_requires = ['thrift'],
)