-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
37 lines (33 loc) · 1.3 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
#! /usr/bin/env python
SRCDIR = "src"
SRCFILES = map(lambda f: SRCDIR + '/' + f + '.c',
["cdbmodule","cdb","cdb_make","cdb_hash",
"uint32_pack","uint32_unpack"])
from distutils.core import setup, Extension
setup (# Distribution meta-data
name = "python-cdb",
version = "0.35",
description = "Interface to constant database files",
author = "Alan Grow",
author_email = "[email protected]",
license = "GPL",
long_description = \
'''The python-cdb extension module is an adaptation of D. J. Bernstein's
constant database package (see http://cr.yp.to/cdb.html).
cdb files are mappings of keys to values, designed for wickedly
fast lookups and atomic updates. This module mimics the normal
cdb utilities, cdb(get|dump|make), via convenient, high-level Python
objects.''',
ext_modules = [ Extension(
"cdb",
SRCFILES,
include_dirs=[ SRCDIR + '/' ],
extra_compile_args=['-fPIC'],
)
],
url = "https://github.com/acg/python-cdb",
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
],
)