From e30c3d96842bc0f1be107a4a46676150733ea39c Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 25 Nov 2007 02:29:59 +0100 Subject: r26105: Add targets for building and installing the python bindings. (This used to be commit 634436adaab18d41ac7cca5ac704929e3b909452) --- source4/lib/ldb/Makefile.in | 7 +++++++ source4/lib/ldb/setup.py | 10 ++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/source4/lib/ldb/Makefile.in b/source4/lib/ldb/Makefile.in index 22ad9a20be..a4723f99a5 100644 --- a/source4/lib/ldb/Makefile.in +++ b/source4/lib/ldb/Makefile.in @@ -222,3 +222,10 @@ etags: ctags: ctags `find $(srcdir) -name "*.[ch]"` + +# Python bindings +build-python: + ./setup.py build + +install-python: + ./setup.py install --prefix=$(prefix) diff --git a/source4/lib/ldb/setup.py b/source4/lib/ldb/setup.py index da3623315e..bff604d5aa 100755 --- a/source4/lib/ldb/setup.py +++ b/source4/lib/ldb/setup.py @@ -1,8 +1,14 @@ #!/usr/bin/python from distutils.core import setup from distutils.extension import Extension -setup(name='ldb', - version='1.0', + +setup(name="ldb", + version="1.0", + url="http://ldb.samba.org/", + author="LDB Developers", + author_email="ldb@samba.org", + license="LGPLv3", + keywords=["ldap","ldb","db","ldif"], ext_modules=[Extension('_ldb', ['ldb.i'], include_dirs=['include'], libraries=['ldb','ldap'])], ) -- cgit