summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-10-05 23:04:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:50 -0500
commitf0bc19ae47d7f06d111713b0dbb00f387621e675 (patch)
treed45be04445a1e8d75a134810d925d5df9ca71704 /source4/lib/ldb
parent68a9ab6b012b69a97f2ffa13d2db0f822e51694d (diff)
downloadsamba-f0bc19ae47d7f06d111713b0dbb00f387621e675.tar.gz
samba-f0bc19ae47d7f06d111713b0dbb00f387621e675.tar.bz2
samba-f0bc19ae47d7f06d111713b0dbb00f387621e675.zip
r25541: Add setup.py for building ldb python wrappers standalone.
(This used to be commit 0e77e3e31653d236bd0110adb28ad9c918b7ae82)
Diffstat (limited to 'source4/lib/ldb')
-rwxr-xr-xsource4/lib/ldb/setup.py8
-rw-r--r--source4/lib/ldb/swig/ldb.i8
2 files changed, 13 insertions, 3 deletions
diff --git a/source4/lib/ldb/setup.py b/source4/lib/ldb/setup.py
new file mode 100755
index 0000000000..e5fcddf0db
--- /dev/null
+++ b/source4/lib/ldb/setup.py
@@ -0,0 +1,8 @@
+#!/usr/bin/python
+from distutils.core import setup
+from distutils.extension import Extension
+setup(name='ldb',
+ version='1.0',
+ ext_modules=[Extension('_ldb', ['swig/ldb.i'], include_dirs=['include'],
+ libraries=['ldb','ldap'])],
+ )
diff --git a/source4/lib/ldb/swig/ldb.i b/source4/lib/ldb/swig/ldb.i
index a1a08ec72f..cdf1d66de1 100644
--- a/source4/lib/ldb/swig/ldb.i
+++ b/source4/lib/ldb/swig/ldb.i
@@ -36,9 +36,9 @@ typedef long long int64_t;
/* Include headers */
-#include "lib/replace/replace.h"
-#include "lib/talloc/talloc.h"
-#include "lib/ldb/include/ldb.h"
+#include <stdbool.h>
+#include "talloc.h"
+#include "ldb.h"
%}
@@ -237,3 +237,5 @@ int ldb_msg_sanity_check(struct ldb_context *ldb, const struct ldb_message *msg)
/* struct ldb_dn *ldb_dn_explode(void *mem_ctx, const char *dn); */
/* char *ldb_dn_linearize(void *mem_ctx, const struct ldb_dn *dn); */
+
+%rename(ldb_context) Ldb;