diff options
author | Rob van der Linde <rob@catalyst.net.nz> | 2023-01-30 16:32:47 +1300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2023-02-02 21:15:54 +0000 |
commit | 851127f5c9a56cb484008f3595099cbd9728b8c7 (patch) | |
tree | df84d82a4be9c454f2cf680b88dc9dfb3e52eb53 /wscript | |
parent | 1dd0cd2f4e644ad43b0e7ee2aaae19799e859585 (diff) | |
download | samba-851127f5c9a56cb484008f3595099cbd9728b8c7.tar.gz |
Python: remove pydoctor
Removes:
* waf pydoctor
* waf wafdocs
* make pydoctor
There is no "make wafdocs" it only appears to be in wscript.
The reasoning being is these are broken and appear to not have been run for some time.
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Feb 2 21:15:54 UTC 2023 on atb-devel-224
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 37 |
1 files changed, 0 insertions, 37 deletions
@@ -465,28 +465,6 @@ def build(bld): samba_version.load_version(env=bld.env, is_install=bld.is_install) -def pydoctor(ctx): - '''build python apidocs''' - bp = os.path.abspath('bin/python') - mpaths = {} - modules = ['talloc', 'tdb', 'ldb'] - for m in modules: - 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() - mpaths['main'] = bp - cmd = ('PYTHONPATH=%(main)s pydoctor --introspect-c-modules --project-name=Samba ' - '--project-url=http://www.samba.org --make-html --docformat=restructuredtext ' - '--add-package bin/python/samba ' + ''.join('--add-module %s ' % n for n in modules)) - cmd = cmd % mpaths - print("Running: %s" % cmd) - status = os.system(cmd) - if os.WEXITSTATUS(status): - raise Errors.WafError('pydoctor failed') - - def pep8(ctx): '''run pep8 validator''' cmd='PYTHONPATH=bin/python pep8 -r bin/python/samba' @@ -496,21 +474,6 @@ def pep8(ctx): raise Errors.WafError('pep8 failed') -def wafdocs(ctx): - '''build wafsamba apidocs''' - from samba_utils import recursive_dirlist - os.system('pwd') - list = recursive_dirlist('../buildtools/wafsamba', '.', pattern='*.py') - - print(list) - cmd='PYTHONPATH=bin/python pydoctor --project-name=wafsamba --project-url=http://www.samba.org --make-html --docformat=restructuredtext' +\ - "".join(' --add-module %s' % f for f in list) - print("Running: %s" % cmd) - status = os.system(cmd) - if os.WEXITSTATUS(status): - raise Errors.WafError('wafdocs failed') - - def dist(): '''makes a tarball for distribution''' sambaversion = samba_version.load_version(env=None) |