[Scons-users] Tool specification `exists()` not called?

Márcio Faustino marciombfaustino at gmail.com
Wed Oct 9 15:05:36 EDT 2013


Hi Dirk,

I read it online at <
http://www.scons.org/doc/production/HTML/scons-man.html#lbAG>, in the
paragraph starting with "This looks for a tool specification in".

If user defined tools won't have their "exists()" called, what is the
appropriate thing to do in order to signal that a tool does not exist?

Thanks,


On Wed, Oct 9, 2013 at 8:41 PM, Dirk Bächle <tshortik at gmx.de> wrote:


> Hi Márcio,

>

>

> On 09.10.2013 19:35, Márcio Faustino wrote:

>

>> Hi,

>>

>> I'm writing a tool specification to be loaded by SCons from

>> "site_scons/site_tools", and although it seems to work fine the `exists()`

>> function does not get called as is written in the manual.

>>

>>

> I just checked the current MAN page and UserGuide for v2.3.0 but couldn't

> find a place where this is claimed. Can you give us a pointer to the exact

> chapter/section? Then I'd try to correct this...

>

>

> Am I missing something? Here's my example tool:

>> https://github.com/marciof/**site_scons/blob/master/site_**

>> tools/travis-lint.py<https://github.com/marciof/site_scons/blob/master/site_tools/travis-lint.py>

>>

>>

> The automatic calling of the exists() function is only done for core

> Tools, when they get tried one after the other to setup the default

> environment. For custom Tools that get loaded additionally this method

> isn't called. However, you're free to do this in your SConscript if you

> like.

>

> Best regards,

>

> Dirk

>

> ______________________________**_________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/**mailman/listinfo/scons-users<http://four.pairlist.net/mailman/listinfo/scons-users>

>




--
Márcio Faustino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20131009/491dd130/attachment.html


More information about the Scons-users mailing list