You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution to issue cannot be found in the documentation.
I checked the documentation.
Issue
For linting, undefined Jinja2 variables get rendered by conda_smithy.utils.NullUndefined. That class contains a __unicode__ method that returns the name of the variable. This is useful to put a clear placeholder where variables will be filled by variants from conda_build_config.yaml during the actual build. However, NullUndefined doesn't overwrite the __str__ method of Jinja's own Undefined, which returns an empty string.
In effect, linting in a Python 2 environment renders, e.g. - {{ libjpeg }} as - libjpeg, but in a Python 3 environment, we get - which becomes None in the requirements_section dictionary.
Installed packages
-
Environment info
-
The text was updated successfully, but these errors were encountered:
Solution to issue cannot be found in the documentation.
Issue
For linting, undefined Jinja2 variables get rendered by
conda_smithy.utils.NullUndefined
. That class contains a__unicode__
method that returns the name of the variable. This is useful to put a clear placeholder where variables will be filled by variants fromconda_build_config.yaml
during the actual build. However,NullUndefined
doesn't overwrite the__str__
method of Jinja's ownUndefined
, which returns an empty string.In effect, linting in a Python 2 environment renders, e.g.
- {{ libjpeg }}
as- libjpeg
, but in a Python 3 environment, we get-
which becomesNone
in therequirements_section
dictionary.Installed packages
Environment info
The text was updated successfully, but these errors were encountered: