Skip to content

Commit 338a546

Browse files
committed
input: support for variable depends
1 parent 4d00b85 commit 338a546

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pym/bob/input.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,9 +2356,13 @@ def prepare(self, inputEnv, sandboxEnabled, inputStates, inputSandbox=None,
23562356
depDiffTools = diffTools.copy()
23572357
thisDeps = {}
23582358

2359+
self.__provideDeps = [ env.substitute(p, "providedDep::"+p)
2360+
for p in self.__provideDeps]
2361+
23592362
for dep in self.__deps:
23602363
env.setFunArgs({ "recipe" : self, "sandbox" : bool(sandbox) and sandboxEnabled,
23612364
"__tools" : tools })
2365+
dep.recipe = env.substitute(dep.recipe, "dependency::"+dep.recipe)
23622366

23632367
if dep.condition and not all(env.evaluate(cond, "dependency "+dep.recipe)
23642368
for cond in dep.condition): continue

0 commit comments

Comments
 (0)