[Scons-users] My own decider function

Andrew C. Morrow andrew.c.morrow at gmail.com
Thu May 7 09:17:07 EDT 2020


MongoDB, as an experiment a number of years ago, wrote a Decider which uses
git metadata instead of file attributes. In practice, the experiment didn't
work: it proved just as costly to ingest the git metadata as to what the
other Deciders do.

However, it maybe provides an example of how to write a decider:
https://github.com/mongodb/mongo/blob/master/site_scons/site_tools/git_decider.py

Whether writing a Decider is what you actually should do is a separate
question.



On Thu, Apr 23, 2020 at 3:01 PM Bill Deegan <bill at baddogconsulting.com>
wrote:

> And in what way would it differ from existing ones?
> Is this related to your yang file email?
>
> On Thu, Apr 23, 2020 at 12:00 PM Bill Deegan <bill at baddogconsulting.com>
> wrote:
>
>> Why?
>>
>> On Thu, Apr 23, 2020 at 9:25 AM Erik Kazandjian <
>> erik.kazandjian at gmail.com> wrote:
>>
>>> I want to write my own decider function but I have a few questions.
>>>
>>> Where can I find good examples of decider functions. The parameters
>>> passed in into a decider are objects like SCons.Node.FS.FileNodeInfo. Where
>>> can I find documentation about these classes. Is there an easy way to
>>> compare the current if a target was changed compared to the previous time ?
>>>
>>> Erik
>>> _______________________________________________
>>> Scons-users mailing list
>>> Scons-users at scons.org
>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>
>> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20200507/3e94b134/attachment.html>


More information about the Scons-users mailing list