From 68d97f8b492d1d075ed77a4bab7f178d10570106 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 11 Dec 2010 01:05:13 +0100 Subject: talloc: Add ability to generate Python docs using pydoctor. --- lib/talloc/wscript | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/talloc/wscript') diff --git a/lib/talloc/wscript b/lib/talloc/wscript index 49eac6e6e6..b4cb84bbd8 100644 --- a/lib/talloc/wscript +++ b/lib/talloc/wscript @@ -141,3 +141,10 @@ def reconfigure(ctx): '''reconfigure if config scripts have changed''' import samba_utils samba_utils.reconfigure(ctx) + + +def pydoctor(ctx): + '''build python apidocs''' + cmd='PYTHONPATH=bin/python pydoctor --project-name=talloc --project-url=http://talloc.samba.org/ --make-html --docformat=restructuredtext --introspect-c-modules --add-module bin/python/talloc.*' + print("Running: %s" % cmd) + os.system(cmd) -- cgit