From 463ec8562a726d502c9e6fb5ad44368140bf2a09 Mon Sep 17 00:00:00 2001 From: Mats Wichmann Date: Sat, 9 May 2020 10:05:49 -0600 Subject: python tool not default + minor wording tweaks Do not add the python tool (which adds Python suffices to SourceFileScanner) in the list of default tools. At the moment, it causes problems for SCons' own documentation build. Minor wording fix in python tool doc. Signed-off-by: Mats Wichmann --- SCons/Tool/__init__.py | 14 +++++++++----- SCons/Tool/python.xml | 7 ++++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/SCons/Tool/__init__.py b/SCons/Tool/__init__.py index 4cb77c0..7aab554 100644 --- a/SCons/Tool/__init__.py +++ b/SCons/Tool/__init__.py @@ -1275,13 +1275,17 @@ def tool_list(platform, env): 'tar', 'zip', # File builders (text) 'textfile', - # Python scanner tool - 'python', ], env) - tools = ([linker, c_compiler, cxx_compiler, - fortran_compiler, assembler, ar, d_compiler] - + other_tools) + tools = [ + linker, + c_compiler, + cxx_compiler, + fortran_compiler, + assembler, + ar, + d_compiler, + ] + other_tools return [x for x in tools if x] diff --git a/SCons/Tool/python.xml b/SCons/Tool/python.xml index e3f7da3..17cb564 100644 --- a/SCons/Tool/python.xml +++ b/SCons/Tool/python.xml @@ -26,9 +26,10 @@ See its __doc__ string for a discussion of the format. -Loads the Python scanner scanner into the invoking environment. When loaded, the scanner will -attempt to find implicit dependencies for any Python source files in the list of sources -provided to an actual that uses this environment. +Loads the Python source scanner into the invoking environment. +When loaded, the scanner will attempt to find implicit +dependencies for any Python source files in the list of sources +provided to an Action that uses this environment. -- cgit v0.12 From 9cc2cdda99866ef7f9241bb762ab1d03989be124 Mon Sep 17 00:00:00 2001 From: Mats Wichmann Date: Sat, 9 May 2020 12:39:06 -0600 Subject: Add version note for Python tool [ci skip] Signed-off-by: Mats Wichmann --- SCons/Tool/python.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/SCons/Tool/python.xml b/SCons/Tool/python.xml index 17cb564..0e9fbbc 100644 --- a/SCons/Tool/python.xml +++ b/SCons/Tool/python.xml @@ -31,6 +31,7 @@ When loaded, the scanner will attempt to find implicit dependencies for any Python source files in the list of sources provided to an Action that uses this environment. +Available since &scons; 4.0.. -- cgit v0.12