[Bf-committers] Various build-related remarks

Nathan Letwory jesterking at letwory.net
Sat Apr 26 09:50:19 CEST 2008


On Sat, Apr 26, 2008 at 2:30 AM, Cyril Brulebois <kibi at debian.org> wrote:
> Hi,
>
>  some quick remarks:
>
>  SCons is moving Options to Variables, which has been initiated in
>  0.98.1:
>  | Add a Variables object as the first step towards deprecating the
>  | Options object name.  Similarly, add BoolVariable(), EnumVariable(),
>  | ListVariable(), PackageVariable() and PathVariable() functions
>  | as first steps towards replacing BoolOption(), EnumOption(),
>  | ListOption(), PackageOption() and PathOption().
>
>  There's a compatibility layer at the moment, but the following code
>  fails. Attached is a proposed patch against trunk (r14554), as proposed
>  by Mark Brown (see [1]):
>  | # From tools/btools.py
>  | import SCons.Options.BoolOption
>  | BoolOption = SCons.Options.BoolOption
>
>  outputs:
>  | kibi at waity:~/upstream/blender$ scons
>  | scons: Reading SConscript files ...
>  | ImportError: No module named BoolOption:
>  |   File "/home/kibi/upstream/blender/SConstruct", line 42:
>  |     import tools.btools
>  |   File "/home/kibi/upstream/blender/tools/btools.py", line 5:
>  |     import SCons.Options.BoolOption
>
>   1. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477912
>
>
>  There are other deprecation warnings:
>  | scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.

Until we move to a newer version of scons, you can instead install an
older version of SCons.

/Nathan


More information about the Bf-committers mailing list