diff --git a/CHANGES.txt b/CHANGES.txt index ee2657ba1c..c664fa6586 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -11,7 +11,7 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER From Thaddeus Crews: - GetSConsVersion() to grab the latest SCons version without needing to - dig into private functions. + access SCons internals. From Raymond Li: - Fix issue #3935: OSErrors are now no longer hidden during execution of diff --git a/RELEASE.txt b/RELEASE.txt index 650288043f..c62d5bbe4b 100644 --- a/RELEASE.txt +++ b/RELEASE.txt @@ -16,7 +16,7 @@ Here is a summary of the changes since 4.7.0: NEW FUNCTIONALITY ----------------- -- GetSConsVersion() to grab the current SCons version from an exposed api. +- GetSConsVersion() added to retrieve the SCons version. DEPRECATED FUNCTIONALITY ------------------------ diff --git a/SCons/Script/SConscript.xml b/SCons/Script/SConscript.xml index 2298490f30..a201c969e0 100644 --- a/SCons/Script/SConscript.xml +++ b/SCons/Script/SConscript.xml @@ -144,6 +144,7 @@ EnsureSConsVersion(0,96,90) Returns the current SCons version in the form of a Tuple[int, int, int], representing the major, minor, and revision values respectively. +Added in 4.7.1. diff --git a/doc/user/misc.xml b/doc/user/misc.xml index 33c0157a03..7d1448d5f5 100644 --- a/doc/user/misc.xml +++ b/doc/user/misc.xml @@ -178,7 +178,7 @@ SCons 1.0 or greater required, but you have SCons 0.98.5
- Grabbing the current SCons Version: the &GetSConsVersion; Function + Accessing SCons Version: the &GetSConsVersion; Function @@ -186,8 +186,7 @@ SCons 1.0 or greater required, but you have SCons 0.98.5 are times where the user will want to support multiple SCons versions simultaneously. In this scenario, it's beneficial to retrieve version information of the currently executing SCons directly. This was previously - only possible by accessing private class methods, which made the - process cumbersome and unintuitive. From 4.8 onwards, it's now possible + only possible by accessing SCons internals. From SCons4.8 onwards, it's now possible to instead call &GetSConsVersion; to recieve a tuple containing the major, minor, and revision values of the current version.