[Scons-users] `__lib_either_version_flag` returning `None` triggers `NameError`

Mats Wichmann mats at wichmann.us
Fri Apr 19 09:03:34 EDT 2024


On 4/14/24 11:04, Sye van der Veen wrote:
> I call `SetAllowableExceptions()` in my build files to ensure that I set 
> all applicable build variables for my targets. I then set variables I 
> don't currently need to the empty string, to avoid the resulting 
> `NameError`s.
> 
> After a recent update to Scons 4.7.0, I was getting a `NameError` 
> stating that `__libversionflags` was undefined. This variable is 
> implemented as a function, and the docstring states: `if version_var is 
> not empty, returns env[flags_var], otherwise returns None`.

I've opened an issue on this topic at 
https://github.com/SCons/scons/issues/4516

If there's any more information feel free to add.  A simple testcase 
that shows things blowing up is always welcome, saves time trying to 
craft one here...





More information about the Scons-users mailing list