Uh oh!
There was an error while loading. Please reload this page.
forked from acg/python-cdb
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
37 lines (33 loc) · 1.3 KB
/
Copy pathsetup.py
File metadata and controls
37 lines (33 loc) · 1.3 KB
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(lambdaf: SRCDIR+'/'+f+'.c',
["cdbmodule","cdb","cdb_make","cdb_hash",
"uint32_pack","uint32_unpack"])
fromdistutils.coreimportsetup, Extension
setup (# Distribution meta-data
name="python-cdb",
version="0.35",
description="Interface to constant database files",
author="Alan Grow",
author_email="alangrow+python-cdb@gmail.com",
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',
],
)