Closed nichmor closed 3 months ago
Hmm, I think in conda-smithy and friends they have some "shim" functions for this. Do you think we should implement the necessary jinja logic?
Hmm, I think in conda-smithy and friends they have some "shim" functions for this. Do you think we should implement the necessary jinja logic?
what do you mean by shims?
This is a list of all jinja functionality supported in the recipe: https://github.com/conda/ceps/pull/71 (@wolfv we should merge this)
Do all of these work as expected now?
Updated the missing filters and added env object. Also added mamba recipe to test that we really don't fail
@baszalmstra @wolfv I'm setting similar shims as: https://github.com/wolfv/conda-smithy/blob/77cd535868932b088b3db7051cd1640655511343/conda_smithy/utils.py#L110
basically this means that we will render unix
part and skip windows
- ${{ "build_mamba.sh" if unix }}
- ${{ "build_mamba.bat" if win }}
I couldn't find an easier way to preserve them ( chatgpt said that I need to write my own node parser, not sure if we need it right now )
Let me know if it's ok
@wolfv made the stubs behave the same
We are missing the use-case when jinja function is used in template - it will raise an Exception. This PR aims to fix it.