scons дополнительный билдер

1
2
3
4
5
6
7
8
def add_dependencies(deps):
def emitter(target, source, env):
env.Depends(target, deps)
return target, source
return emitter
env.Append(BUILDERS = {'Stem': Builder(action=str(stemmer[0])+' < $SOURCE > $TARGET',
emitter=add_dependencies(stemmer))})