BUG: 'PYTHON' is undefined for multi-output builds if some outputs are generic #5424
Open
2 tasks done
Labels
type::bug
describes erroneous operation, use severity::* to classify the type
Checklist
What happened?
Consider the following recipe:
I don't see why this recipe should not be able to be built.
However, conda build fails with
Error: Failed to render jinja template in /home/conda/recipe_root/meta.yaml: 'PYTHON' is undefined
Apparently, this happens because the entire jinja template is rendered for every output but
PYTHON
is only set if the currently-processed output has Python as a host dependency.I think a better behavior would be to strip out details about other outputs including the variables they reference before rendering with patched metadata dependent on individual outputs.
Conda Info
No response
Conda Config
No response
Conda list
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: