diff options
author | Thomas Nagy <tnagy1024@gmail.com> | 2010-04-08 07:45:46 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-08 07:46:39 +1000 |
commit | 7f3116a63d7d91f4c0d26adf8fcdef0a5a957971 (patch) | |
tree | 46e95f69b7637c38dbbc20455c3dc99408a93df7 /source4/wscript | |
parent | 64957ce0686761acd2a2a7ec1787898d2d8238b6 (diff) | |
download | samba-7f3116a63d7d91f4c0d26adf8fcdef0a5a957971.tar.gz samba-7f3116a63d7d91f4c0d26adf8fcdef0a5a957971.tar.bz2 samba-7f3116a63d7d91f4c0d26adf8fcdef0a5a957971.zip |
build: allow the waf build to work with python 3.0 and 3.1
Python 3.x is a bit fussier about print statements and indentation.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/wscript')
-rw-r--r-- | source4/wscript | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/wscript b/source4/wscript index a1ca61f0a1..d40d434397 100644 --- a/source4/wscript +++ b/source4/wscript @@ -89,7 +89,7 @@ def etags(ctx): import Utils source_root = os.path.dirname(Utils.g_module.root_path) cmd = 'etags $(find %s/.. -name "*.[ch]")' % source_root - print "Running: %s" % cmd + print("Running: %s" % cmd) os.system(cmd) def ctags(ctx): @@ -97,7 +97,7 @@ def ctags(ctx): import Utils source_root = os.path.dirname(Utils.g_module.root_path) cmd = 'ctags $(find %s/.. -name "*.[ch]" | grep -v "*_proto\.h")' % source_root - print "Running: %s" % cmd + print("Running: %s" % cmd) os.system(cmd) # putting this here enabled build in the list @@ -110,7 +110,7 @@ def build(bld): def pydoctor(ctx): '''build python apidocs''' cmd='LD_LIBRARY_PATH=bin/shared PYTHONPATH=bin/python pydoctor --project-name=Samba --project-url=http://www.samba.org --make-html --docformat=restructuredtext --add-package bin/python/samba' - print "Running: %s" % cmd + print("Running: %s" % cmd) os.system(cmd) def wafdocs(ctx): @@ -120,10 +120,10 @@ def wafdocs(ctx): list = recursive_dirlist('../buildtools/wafsamba', '.', pattern='*.py') cmd='LD_LIBRARY_PATH=bin/shared PYTHONPATH=bin/python pydoctor --project-name=wafsamba --project-url=http://www.samba.org --make-html --docformat=restructuredtext' - print list + print(list) for f in list: cmd += ' --add-module %s' % f - print "Running: %s" % cmd + print("Running: %s" % cmd) os.system(cmd) |