diff options
author | anatoly techtonik <techtonik@gmail.com> | 2014-09-26 13:17:38 (GMT) |
---|---|---|
committer | anatoly techtonik <techtonik@gmail.com> | 2014-09-26 13:17:38 (GMT) |
commit | 0b806ea5b203f1ef876f5d91294aaeabdc5a639a (patch) | |
tree | 5ee3783961ca3d24c7910777e8082e4d080c13ce | |
parent | 2a2bb65ba5daa067950ea2be8b13ee812db47241 (diff) | |
download | SCons-0b806ea5b203f1ef876f5d91294aaeabdc5a639a.zip SCons-0b806ea5b203f1ef876f5d91294aaeabdc5a639a.tar.gz SCons-0b806ea5b203f1ef876f5d91294aaeabdc5a639a.tar.bz2 |
Split __VERSION__ string in EnsureSConsVersion to avoid replacement
during package build process. This fixes SCons warning that it runs
in development mode.
-rw-r--r-- | src/CHANGES.txt | 5 | ||||
-rw-r--r-- | src/engine/SCons/Script/SConscript.py | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 58071ab..4fc89b6 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -11,6 +11,11 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER Configure contexts (#2971). +RELEASE 2.3.4 - Sss, DD Mmm yyyy hh:mm:ss -zzzz + + From Anatoly Techtonik: + - Fix EnsureSConsVersion warning when running packaged version + RELEASE 2.3.3 - Sun, 24 Aug 2014 21:08:33 -0400 From Roland Stark: diff --git a/src/engine/SCons/Script/SConscript.py b/src/engine/SCons/Script/SConscript.py index 111d091..f4a7f07 100644 --- a/src/engine/SCons/Script/SConscript.py +++ b/src/engine/SCons/Script/SConscript.py @@ -461,7 +461,8 @@ class SConsEnvironment(SCons.Environment.Base): def EnsureSConsVersion(self, major, minor, revision=0): """Exit abnormally if the SCons version is not late enough.""" - if SCons.__version__ == '__VERSION__': + # split string to avoid replacement during build process + if SCons.__version__ == '__' + 'VERSION__': SCons.Warnings.warn(SCons.Warnings.DevelopmentVersionWarning, "EnsureSConsVersion is ignored for development version") return |