Author: jelmer Date: 2007-10-05 23:04:46 +0000 (Fri, 05 Oct 2007) New Revision: 25541
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25541 Log: Add setup.py for building ldb python wrappers standalone. Added: branches/SAMBA_4_0/source/lib/ldb/setup.py Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/lib/ldb/swig/ldb.i Changeset: Property changes on: branches/SAMBA_4_0 ___________________________________________________________________ Name: bzr:revision-info ...skipped... Name: bzr:file-ids ...skipped... Name: bzr:revision-id:v3-trunk0 ...skipped... Added: branches/SAMBA_4_0/source/lib/ldb/setup.py =================================================================== --- branches/SAMBA_4_0/source/lib/ldb/setup.py 2007-10-05 23:02:07 UTC (rev 25540) +++ branches/SAMBA_4_0/source/lib/ldb/setup.py 2007-10-05 23:04:46 UTC (rev 25541) @@ -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'])], + ) Property changes on: branches/SAMBA_4_0/source/lib/ldb/setup.py ___________________________________________________________________ Name: svn:executable + * Modified: branches/SAMBA_4_0/source/lib/ldb/swig/ldb.i =================================================================== --- branches/SAMBA_4_0/source/lib/ldb/swig/ldb.i 2007-10-05 23:02:07 UTC (rev 25540) +++ branches/SAMBA_4_0/source/lib/ldb/swig/ldb.i 2007-10-05 23:04:46 UTC (rev 25541) @@ -36,9 +36,9 @@ /* 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 @@ /* 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;