diff options
author | William Deegan <bill@baddogconsulting.com> | 2019-11-07 02:25:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-07 02:25:44 (GMT) |
commit | b1a267d10bb40888b86ed8f0ae429a3a19029979 (patch) | |
tree | 625ac2a724ebd698bf7a2148849f5f2ac1a22572 | |
parent | c6ca3bdd2ad8e9a6ceea398934d84def9ba7c497 (diff) | |
parent | 69eb89f5055875a0af1b8329144eb61c04481105 (diff) | |
download | SCons-b1a267d10bb40888b86ed8f0ae429a3a19029979.zip SCons-b1a267d10bb40888b86ed8f0ae429a3a19029979.tar.gz SCons-b1a267d10bb40888b86ed8f0ae429a3a19029979.tar.bz2 |
Merge pull request #3466 from mwichmann/depr-builder
Remove deprecated Builder keywords
-rw-r--r-- | doc/man/scons.xml | 3 | ||||
-rwxr-xr-x | src/CHANGES.txt | 2 | ||||
-rw-r--r-- | src/engine/SCons/Builder.py | 15 |
3 files changed, 10 insertions, 10 deletions
diff --git a/doc/man/scons.xml b/doc/man/scons.xml index a9e0dd7..ae54e2e 100644 --- a/doc/man/scons.xml +++ b/doc/man/scons.xml @@ -4960,7 +4960,8 @@ the same target file(s). The default is 0, which means the builder can not be called multiple times for the same target file(s). Calling a builder multiple times for the same target simply adds additional source files to the target; it is not allowed to change the environment associated -with the target, specify addition environment overrides, or associate a different +with the target, specify additional environment overrides, +or associate a different builder with the target.</para> </listitem> diff --git a/src/CHANGES.txt b/src/CHANGES.txt index af448d5..af05d35 100755 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -25,6 +25,7 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER On vs2019 saves 5+ seconds per SCons invocation, which really helps test suite runs. - Remove deprecated SourceSignatures, TargetSignatures + - Remove deprecated Builder keywords: overrides and scanner From Jacek Kuczera: - Fix CheckFunc detection code for Visual 2019. Some functions @@ -36,6 +37,7 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER From Edoardo Bezzeccheri - Added debug option "action_timestamps" which outputs to stdout the absolute start and end time for each target. + RELEASE 3.1.1 - Mon, 07 Aug 2019 20:09:12 -0500 From William Deegan: diff --git a/src/engine/SCons/Builder.py b/src/engine/SCons/Builder.py index 4352d7a..e3fb396 100644 --- a/src/engine/SCons/Builder.py +++ b/src/engine/SCons/Builder.py @@ -396,16 +396,13 @@ class BuilderBase(object): self.env = env self.single_source = single_source if 'overrides' in overrides: - SCons.Warnings.warn(SCons.Warnings.DeprecatedBuilderKeywordsWarning, - "The \"overrides\" keyword to Builder() creation has been deprecated;\n" +\ - "\tspecify the items as keyword arguments to the Builder() call instead.") - overrides.update(overrides['overrides']) - del overrides['overrides'] + msg = "The \"overrides\" keyword to Builder() creation has been removed;\n" +\ + "\tspecify the items as keyword arguments to the Builder() call instead." + raise TypeError(msg) if 'scanner' in overrides: - SCons.Warnings.warn(SCons.Warnings.DeprecatedBuilderKeywordsWarning, - "The \"scanner\" keyword to Builder() creation has been deprecated;\n" - "\tuse: source_scanner or target_scanner as appropriate.") - del overrides['scanner'] + msg = "The \"scanner\" keyword to Builder() creation has been removed;\n" +\ + "\tuse: source_scanner or target_scanner as appropriate." + raise TypeError(msg) self.overrides = overrides self.set_suffix(suffix) |