[Scons-users] --debug=explain seems to be a little overenthusiastic

Tom Tanner (BLOOMBERG/ LONDON) ttanner2 at bloomberg.net
Fri Jan 30 04:28:26 EST 2015


I have a build where we run pylint. For various reasons, the quickest way of telling if pylint has changed is to run pylint --version.

So we have something like this in the pylint tool script

version = subprocess.Popen('pylint --version').communicate()[0]
env['PYLINT_VER'] = env.Value(version)

then in the generator

env.Depends(target, env['PYLINT_VERSION'])

the emitter has this
source += [ '.pylintrc' ]

scons --debug=explain when you havet changed anything produces no output

but if you change .pylintrc, you get this

scons: rebuilding `thing1.stats' because:
`pylint 1.1.0, 
astroid 1.0.1, common 0.60.1
Python 2.6.2 (r262:71600, May  4 2009, 16:08:49) [C]
' is no longer a dependency
`.pylintrc' changed
`pylint 1.1.0, 
astroid 1.0.1, common 0.60.1
Python 2.6.2 (r262:71600, May  4 2009, 16:08:49) [C]
' is a new dependency

this is a little confusing.

This is scons 2.2 with some of the 2.3 changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150130/d2074101/attachment.html>


More information about the Scons-users mailing list