def _render_jinja2(recipe_dir):
 try:
  import jinja2
 except ImportError:
  raise Exception('Failed to import jinja2 for evaluating Conda recipe templates.')
 loaders = [jinja2.FileSystemLoader(recipe_dir)]
 env = jinja2.Environment(loader=jinja2.ChoiceLoader(loaders))
 template = env.get_or_select_template('meta.yaml')
 return template.render(environment=env)

def _render_jinja2 ( recipe_dir ) : try : import jinja2 except ImportError : raise Exception ( 'Failed to import jinja2 for evaluating Conda recipe templates.' ) loaders = [ jinja2 . FileSystemLoader ( recipe_dir ) ] env = jinja2 . Environment ( loader = jinja2 . ChoiceLoader ( loaders ) ) template = env . get_or_select_template ( 'meta.yaml' ) return template . render ( environment = env )
evaluate conda recipe as a jinja template .