[Scons-users] Multiple Configure objects

Bryan Catanzaro bcatanzaro at acm.org
Sat Sep 13 14:26:22 EDT 2014


Thanks, Dirk - the calls to conf.Finish() were the missing ingredient.

The issue is filed:
http://scons.tigris.org/issues/show_bug.cgi?id=2975

- bryan

On Sat, Sep 13, 2014 at 1:16 AM, Dirk Bächle <tshortik at gmx.de> wrote:
> Hi Bryan,
>
> On 13.09.2014 02:18, Bryan Catanzaro wrote:
>>
>> Hi -
>> I like SCons' Configure functionality. I would like to create multiple
>> Configure objects within the same project - for example, one in the
>> main SConstruct file, and then another working on a clone of the main
>> env, but with some other things added in a child SConscript.
>>
>> Unfortunately, if you try to create two configure objects, SCons
>> throws a blank UserError.
>> This can be easily reproduced with this code:
>>
>> conf = Configure(env)
>> clone = env.Clone()
>> clone_conf = Configure(clone)
>>
>> A couple things:
>> 1. Is it possible to do this in some other way?
>
>
> this should be possible if you close/finish the first configuration context
> before opening another one:
>
> env = Environment()
> cenv = Configure(env)
> clone = env.Clone()
> cenv.Finish()
> clone_conf = Configure(clone)
>
> Depending on your project's requirements you might want to clone the
> Environment() before or after the first Configuration step.
>
>> 2. If not, can a more informative error message be thrown? On 2.3.3,
>> the error message is blank, so the output is literally just:
>>
>> scons: ***
>>
>> I had to debug SCons to figure out what was going on...
>
>
> I agree that the error message should be a little more...verbose, ahem.
> Could you please create an issue in our Tigris bug tracker for this, and
> append your testcase? Then we could try to catch this case where a Configure
> context is already openend and emit a more meaningful warning message.
>
> Thanks a lot in advance, and best regards,
>
> Dirk
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users


More information about the Scons-users mailing list