Updating to SCons 1.2.0

Updating SCons to 1.2.0 on one of the machines (puffer) caused deprecation warnings to appear with the current version (revision 6) of the repository code. The warnings:

scons: warning: The Options class is deprecated;
use the Variables class instead.

and

scons: warning: The BoolOption() function is deprecated;
use the BoolVariable() function instead.

appear at lines 15 and 19 in the SConstruct file.

There are two ways we can deal with deprecated code. Either we can force everyone to update by enforcing a specific SCons version in the SConstruct file by adding:

EnsureSConsVersion(1, 2)

or we can ignore it for now by running SCons with the switch:

scons -Q --warn=no-deprecated

It was decided to continue to use the Options and BoolOptions class and functions at present to maintain backwards compatibility, but it should be noted that at such time that these become more than deprecated warnings, or that something with more serious implications changes then the EnsureSConsVersion function will be used to set a minimum SCons version.

One Response to “Updating to SCons 1.2.0”

Other Links to this post

  1. [...] See this post as to the decision to continue to use the now deprecated BoolOption at [...]

Leave a Reply

You must be logged in to post a comment.