[Scons-dev] Feature request / patch

Eric W. Anderson andersoe at ece.cmu.edu
Tue Jul 31 12:37:50 EDT 2012


Hi All,

In that case, I have a request for advice from core developers: I've written
an extension to the signature system that allows the user to specify an extra
signature-generating function, so that in addition to a .csig, File nodes can
have a .ext_sig attribute, the semantics of which are up to the user.

My motivating application is that I use some tools which update a timestamp in
a comment in the _input_ files every damned time they run, which messes
everything up. Right now, I use sed to eliminate those timestamps, which makes
SCons happy but confuses the tools when they're run normally. My solution is
an extra-signature function which takes and MD5 sum over only the non-comment
lines in a file, and then a decider function which uses that ext_sig.

Now, here are my questions:

1. Is there a reasonable way I can access the user-defined environment when
SCons.Node.FS.File.get_ext_sig() is called? It's called a lot of times when
get_build_env() returns None, and get_env() returns the default env.

2. If my extension is of interest to others, and might someday become part of
the main sources, how should I make it better / cleaner / prettier / etc.?

Thanks,
Eric



Gary Oberbrunner wrote:


> On Tue, Jul 31, 2012 at 10:30 AM, Eric Anderson <andersoe at ece.cmu.edu> wrote:

> > Hi All,

> >

> > I recently submitted a feature request (and prototype implementation) on

> > Tigris (http://scons.tigris.org/issues/show_bug.cgi?id=2860), but I'm

> > not clear on whether you're still using that service.

>

> You did it all right. We do (still) use Tigris for our bug tracker.

>

> > Do I need to do anything else / different? Should I ask about it on

> > this list, etc?

>

> If you'd like to discuss it, this list is the place to do so.

> Otherwise the usual path is it'll get prioritized along with other

> items for a future release.

>

> --

> Gary

>


--
Eric W. Anderson Electrical and Computer Engineering
andersoe at ece.cmu.edu Carnegie Mellon University
phone: +1-412-268-1908 Roberts Hall 244

PGP key fingerprint:
D3C5 D6FF EDED 9F1F C36D 53A3 74B7 53A6 3C74 5F12
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : <http://two.pairlist.net/pipermail/scons-dev/attachments/20120731/af3b0b02/attachment.pgp>


More information about the Scons-dev mailing list