New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test the concept of using python_require to modify package-id of consumers of build_requires #8076
test the concept of using python_require to modify package-id of consumers of build_requires #8076
Conversation
…umers of build_requires
This appears to me to be a brilliant solution. To re-iterate the use-case/problem this solves. There are many issues where people wish In the meantime, this solution provides the same net-effect. To use this strategy, add the package you want to Also of note, each time you update/bump the version of the One logistical implication is that it requires you to add the dependency explicitly in every recipe, whereas before you might have always fed |
If using version-ranges or revisions, using consistently the same in both places could avoid updating the recipes. Otherwise, yes, it is needed to bump the
Yes, this is a workaround, not a feature, to be able to modify the package_id until Conan 2.0 can model that. But as suggested above, if you user versioning consistently, you might not need bumping the python_requires versions in recipes all the time. |
We should see if @theodelrieu has any additional thoughts or suggestions since he is one of the earliest known requesters of build_requires pacakge irelationship. |
This looks promising! I've never used |
No, |
please include the docs workaround as well and indicate is this would close any issue related. thanks! |
Docs added.
Not really, those issues cannot be considered closed, this is a workaround, not a full solution. |
Changelog: Feature: Proof that
python_requires
can be used (as a workaround) to affect thepackage_id
of consumers ofbuild_requires
that otherwise will not be rebuilt based on changes.Docs: conan-io/docs#1925