summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-06 23:40:39 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-10 21:31:54 +0100
commitaf087626531a9510c9b897cd520364ee746825b4 (patch)
treeaa508c4c347942ede10413b9cc18f9af93d71da7
parentadcdee89335eba2a5b982900ab3c796a4003751a (diff)
downloadsamba-af087626531a9510c9b897cd520364ee746825b4.tar.gz
samba-af087626531a9510c9b897cd520364ee746825b4.tar.bz2
samba-af087626531a9510c9b897cd520364ee746825b4.zip
wscript: Include talloc, tdb and ldb in pydoctor output.
-rwxr-xr-xwscript11
1 files changed, 10 insertions, 1 deletions
diff --git a/wscript b/wscript
index 8945c78494..e1fe95363e 100755
--- a/wscript
+++ b/wscript
@@ -151,7 +151,16 @@ def build(bld):
def pydoctor(ctx):
'''build python apidocs'''
- cmd='PYTHONPATH=%s pydoctor --introspect-c-modules --project-name=Samba --project-url=http://www.samba.org --make-html --docformat=restructuredtext --add-package bin/python/samba' % os.path.abspath('bin/python')
+ bp = os.path.abspath('bin/python')
+ mpaths = {}
+ for m in ['talloc', 'tdb', 'ldb']:
+ f = os.popen("PYTHONPATH=%s python -c 'import %s; print %s.__file__'" % (bp, m, m), 'r')
+ try:
+ mpaths[m] = f.read().strip()
+ finally:
+ f.close()
+ cmd='PYTHONPATH=%s pydoctor --introspect-c-modules --project-name=Samba --project-url=http://www.samba.org --make-html --docformat=restructuredtext --add-package bin/python/samba --add-module %s --add-module %s --add-module %s' % (
+ bp, mpaths['tdb'], mpaths['ldb'], mpaths['talloc'])
print("Running: %s" % cmd)
os.system(cmd)