[Scons-users] make Command Builder not print command

Bill Deegan bill at baddogconsulting.com
Tue Mar 5 22:34:02 EST 2019


Maybe an override defining PRINT_CMD_LINE_FUNC?

Like this:

import sys

def print_cmd_line(s, target, source, env):
  sys.stdout.write("AHAH\n")

env = Environment()
env.Command('file.out', 'file.in', 'cat $SOURCE > $TARGET',
PRINT_CMD_LINE_FUNC=print_cmd_line )



On Tue, Mar 5, 2019 at 7:30 PM Daniel Moody <dmoody256 at gmail.com> wrote:

> How can I make a Command() that doesn't print the command, or print my own
> string instead? I don't want to use silent or -Q because I only want this
> command to be printed.
>
> For example
>
> env = Environment()
> env.Command('file.out', 'file.in', 'cat $SOURCE > $TARGET')
>
> results in:
>
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> cat file.in > file.out
> scons: done building targets.
>
> I just want:
>
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: done building targets.
> _______________________________________________
> 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/20190305/f1916194/attachment-0001.html>


More information about the Scons-users mailing list