Skip to content

Conversation

@aliciaaevans
Copy link
Contributor

@aliciaaevans aliciaaevans commented May 1, 2025

  • add stdlib function to JINJA_VARS to prevent the version_constraints_missing_whitespace lint error
  • add new lint to require stdlib function if compilers are used
  • update tests for the new lint (and to avoid tripping it when testing other lints)
  • Add {{ stdlib("c") }} to bioconductor-skeleton

See bioconda/bioconda-recipes#51185

From what I can tell, the JINJA_VARS part is used to allow for converting the recipe from string to yaml (which would reject the jinja vars as syntax errors) for various actions by bioconda-utils (such as linting) and not used in the actual build by conda-build. A thorough second look might be a good idea.

@aliciaaevans aliciaaevans requested review from bgruening and mbargull May 1, 2025 20:46
@aliciaaevans aliciaaevans marked this pull request as ready for review May 1, 2025 20:50
``requirements: build:`` section.
"""

def check_deps(self, deps):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a check for having stdlib but no compiler?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. It doesn't seem like conda-forge has that check. Although maybe someone might get confused and think they could use it in place of a compiler.

Copy link
Member

@bgruening bgruening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants