diff options
author | Mats Wichmann <mats@linux.com> | 2024-07-17 14:35:58 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2024-07-17 14:35:58 (GMT) |
commit | 666f1198508d9b52e0726abca5564aaf161ce97c (patch) | |
tree | 5efac7e2a35e370850716db784ef3cf12d93e509 /RELEASE.txt | |
parent | 97366202220a4e62ce2b621b85dd5b9c7ca32585 (diff) | |
download | SCons-666f1198508d9b52e0726abca5564aaf161ce97c.zip SCons-666f1198508d9b52e0726abca5564aaf161ce97c.tar.gz SCons-666f1198508d9b52e0726abca5564aaf161ce97c.tar.bz2 |
Restore usage of "from SCons.Variables import *`
This (unadvertised) import turns out to have real-world usage,
and there's no real reason to prohibit it, although we do suggest
using `from SCons.Script import *` as a more complete version.
SCons 4.8.0 introduced an `__all__` in the variables module;
add the five variables types to this so the listed import will
work as expected.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'RELEASE.txt')
-rw-r--r-- | RELEASE.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/RELEASE.txt b/RELEASE.txt index b29ecbd..887ceb2 100644 --- a/RELEASE.txt +++ b/RELEASE.txt @@ -39,7 +39,13 @@ CHANGED/ENHANCED EXISTING FUNCTIONALITY FIXES ----- -- List fixes of outright bugs +- SCons 4.8.0 added an `__all__` specifier at the top of the Variables + module (`Variables/__init__.py`) to control what is made available in + a star import. However, there was existing usage of doing + `from SCons.Variables import *` which expected the variable *types* + to be avaiable. `BoolVariable`, `EnumVariable`, `ListVariable`, + `PackageVariable` and `PathVariable` are added to `__all__`, + so this form of import should now work again. IMPROVEMENTS ------------ |