diff options
author | William Deegan <bill@baddogconsulting.com> | 2022-10-22 00:16:13 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2022-10-22 00:16:13 (GMT) |
commit | 20ffb3e37f8b46ef232c28e32006294e4d513e3e (patch) | |
tree | 844f153e6886e52ef92014b4fcfda933275ca27e /SCons/Script/Main.py | |
parent | b23bbee1bfcffab6c22f6d32689a16c093a983d3 (diff) | |
download | SCons-20ffb3e37f8b46ef232c28e32006294e4d513e3e.zip SCons-20ffb3e37f8b46ef232c28e32006294e4d513e3e.tar.gz SCons-20ffb3e37f8b46ef232c28e32006294e4d513e3e.tar.bz2 |
Migrate Taskmaster tracing to use python logging
Diffstat (limited to 'SCons/Script/Main.py')
-rw-r--r-- | SCons/Script/Main.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/SCons/Script/Main.py b/SCons/Script/Main.py index 22042f5..b902842 100644 --- a/SCons/Script/Main.py +++ b/SCons/Script/Main.py @@ -1291,23 +1291,12 @@ def _build_targets(fs, options, targets, target_top): """Leave the order of dependencies alone.""" return dependencies - def tmtrace_cleanup(tfile): - tfile.close() - - if options.taskmastertrace_file == '-': - tmtrace = sys.stdout - elif options.taskmastertrace_file: - tmtrace = open(options.taskmastertrace_file, 'w') - atexit.register(tmtrace_cleanup, tmtrace) - else: - tmtrace = None - taskmaster = SCons.Taskmaster.Taskmaster(nodes, task_class, order, tmtrace) + taskmaster = SCons.Taskmaster.Taskmaster(nodes, task_class, order, options.taskmastertrace_file) # Let the BuildTask objects get at the options to respond to the # various print_* settings, tree_printer list, etc. BuildTask.options = options - is_pypy = platform.python_implementation() == 'PyPy' # As of 3.7, python removed support for threadless platforms. # See https://www.python.org/dev/peps/pep-0011/ |