summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-11-25 02:29:59 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:46:05 +0100
commite30c3d96842bc0f1be107a4a46676150733ea39c (patch)
treed3f3ef71a7d638e5caf141fb4ad9f2a84ec918f8 /source4
parentf6d91ea2e20c9e5bf2c52409467355407206ced2 (diff)
downloadsamba-e30c3d96842bc0f1be107a4a46676150733ea39c.tar.gz
samba-e30c3d96842bc0f1be107a4a46676150733ea39c.tar.bz2
samba-e30c3d96842bc0f1be107a4a46676150733ea39c.zip
r26105: Add targets for building and installing the python bindings.
(This used to be commit 634436adaab18d41ac7cca5ac704929e3b909452)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/Makefile.in7
-rwxr-xr-xsource4/lib/ldb/setup.py10
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'])],
)