Skip to content
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

[feature] Adding a run_requirements method? #9495

Closed
daravi opened this issue Aug 28, 2021 · 2 comments
Closed

[feature] Adding a run_requirements method? #9495

daravi opened this issue Aug 28, 2021 · 2 comments

Comments

@daravi
Copy link
Contributor

daravi commented Aug 28, 2021

Hello,

I am wondering how can we distinguish between build-time requirements and run-time requirements in Conan? An example of a runtime requirement would be plugins needed by a library (actually the only example I have in mind). For example, the Qt Multimedia library needs some GStreamer plugins at runtime, which in turn might require some Alsa plugins. But these are not required to build Qt. So adding these to requirements means Qt could be unnecessarily rebuilt every time these or anything in their graph is updated. Not adding them to the requirements on the other hand would mean the end consumer would just have to know all the runtime requirements in their dependency graph.

Please let me know if it is possible to distinguish between run/build time dependencies in current Conan. If not then maybe a run_requirements method could be added to model these? (which would be brought into cache only at conan install I guess)

@memsharded
Copy link
Member

The Conan 2.0 proposal is adding build=True/False, run=True/False among others traits to specify qualifiers to the different requirements: conan-io/tribe#26

In Conan 1.X is not possible, and it will not be added, we will need to wait until Conan 2.0. Please stay tuned for the alphas and betas of Conan 2.0 to try things and give feedback.

@daravi
Copy link
Contributor Author

daravi commented Aug 30, 2021

That sounds great @memsharded! Will close as duplicate then.

@daravi daravi closed this as completed Aug 30, 2021
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

No branches or pull requests

2 participants