Re: func in command doesn't get exuecuted.

Bill Deegan <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAEyG4CEqQAhhYSWB0HvcUv56EV2jnsnRLpuPH1-RnZPkfYw8dA@mail.gmail.com>
No worries.
We've all been there. :)


On Thu, Sep 9, 2021 at 2:46 PM daggs <[email protected]> wrote:

> me puts the dumbass hat and goes to stand in the corner.
>
> I cannot belive how much I wasted because this small error.
>
> Thanks Bill.
>
> you saved me from doing an open heart surgery to my project''
>
> Dagg
>
> *Sent:* Thursday, September 09, 2021 at 9:15 PM
> *From:* "Bill Deegan" <[email protected]>
> *To:* "SCons users mailing list" <[email protected]>
> *Subject:* Re: [Scons-users] func in command doesn't get exuecuted.
> Dagg,
>
> You're running "scons -n" (with other args) right?
> Then of course no  builders are actually run.
>
> -Bill
>
> On Thu, Sep 9, 2021 at 7:10 AM daggs <[email protected]> wrote:
>
>> Greetings,
>>
>> I have a target I want to rebuild everytime I run scons.
>>
>> so I defined the following command:
>> env.AlwaysBuild(env.Command(get_target("initial_step"),
>> get_deps("initial_step"), build))
>>
>> get_target returns the target based on a label, get_deps returns a list
>> of deps based on a label
>> build is defined as follows:
>> def build(target, source, env):
>>     raise NameError('die')
>>
>> when I run scons like this: scons tar -nQ --tree=all --debug=explain
>>
>> scons: rebuilding `/tmp/a' because AlwaysBuild() is specified
>> build(["/tmp/a"], ["/tmp/create_a.sh"])
>>
>> but no error, the build just continues.
>>
>> any idea how to debug this issue?
>>
>> Thanks,
>>
>> Dagg
>> _______________________________________________
>> Scons-users mailing list
>> [email protected]
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
> _______________________________________________ Scons-users mailing list
> [email protected]
> https://pairlist4.pair.net/mailman/listinfo/scons-users
> _______________________________________________
> Scons-users mailing list
> [email protected]
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.