MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / generate

Function generate

builders/coconut.py:25–35  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

23
24
25def generate(env):
26 env['COCONUT'] = _detect(env)
27 env['COCONUTFLAGS'] = []
28
29 coconut_compiler = Builder(
30 action='"$COCONUT" $COCONUTFLAGS $SOURCE $TARGET',
31 src_suffix='.coco',
32 suffix='.py',
33 )
34
35 env.Append(BUILDERS={'Coconut': coconut_compiler})
36
37def exists(env):
38 return env.Detect('coconut')

Callers

nothing calls this directly

Calls 1

_detectFunction · 0.70

Tested by

no test coverage detected