Skip to content

How to force req/run versions equal to req/host without explicit pinning? #1882

Answered by carterbox
IM-USAF asked this question in Q&A
Discussion options

You must be logged in to vote

There is a keyword argument "exact" for the pinning expressions.

pin_compatible("xxx", exact=True)

However, exact pinning includes the build string which is unique to conda-forge and has nothing to do with upstream versioning. max_pin='x.x.x' should be sufficient because the ABI should not change between multiple conda-forge builds of the same version of a package.

https://docs.conda.io/projects/conda-build/en/latest/resources/variants.html#extra-jinja2-functions
https://github.com/conda/conda-build/blob/c752fc43b88928321eb7632a9840476b1b93abd0/conda_build/jinja_context.py#L206

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@IM-USAF
Comment options

@carterbox
Comment options

@IM-USAF
Comment options

Answer selected by IM-USAF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants