1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r25541: Add setup.py for building ldb python wrappers standalone.

(This used to be commit 0e77e3e316)
This commit is contained in:
Jelmer Vernooij 2007-10-05 23:04:46 +00:00 committed by Gerald (Jerry) Carter
parent 68a9ab6b01
commit f0bc19ae47
2 changed files with 13 additions and 3 deletions

8
source4/lib/ldb/setup.py Executable file
View File

@ -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'])],
)

View File

@ -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;