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
# MJ Pomraning <mjp@pilcrow.madison.wi.us>
# 26 Jan 2001
# python-cdb 0.32 setup.py
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.32",
description = "Interface to constant database files",
author = "MJ Pomraning",
author_email = "mjp@pilcrow.madison.wi.us",
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(
"cdbmodule",
SRCFILES,
include_dirs=[ SRCDIR + '/' ]
)
],
url = "http://pilcrow.madison.wi.us/",
)
|