nmdb: Add an option to save the pidfile
[nmdb.git] / bindings / python / setup.py
blobdce1df3878d4a5b85c6dd42badc4651d9a2eb02b
2 import sys
3 from distutils.core import setup, Extension
5 if sys.version_info[0] == 2:
6 ver_define = ('PYTHON2', '1')
7 elif sys.version_info[0] == 3:
8 ver_define = ('PYTHON3', '1')
11 nmdb_ll = Extension("nmdb_ll",
12 libraries = ['nmdb'],
13 sources = ['nmdb_ll.c'],
14 define_macros = [ver_define])
16 setup(
17 name = 'nmdb',
18 description = "libnmdb bindings",
19 author = "Alberto Bertogli",
20 author_email = "albertito@blitiri.com.ar",
21 url = "http://blitiri.com.ar/p/nmdb",
22 py_modules = ['nmdb'],
23 ext_modules = [nmdb_ll]