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

[question] Conan 2.0 does not support in for requirements #12832

Closed
1 task done
AbrilRBS opened this issue Jan 3, 2023 · 0 comments · Fixed by #15221
Closed
1 task done

[question] Conan 2.0 does not support in for requirements #12832

AbrilRBS opened this issue Jan 3, 2023 · 0 comments · Fixed by #15221
Assignees
Milestone

Comments

@AbrilRBS
Copy link
Member

AbrilRBS commented Jan 3, 2023

What is your question?

While @jcar87 was fixing issues with boost in Conan 2 for conan-io/conan-center-index#15105, we found that
in 1.0, you could use something like if your_dependency in self.requires (Or a similar syntax).

Now in 2.0, you need to do if self.dependencies.get(your_dependencies), which looks fine, but having the option to be more pythonic could also be a good alternative

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
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 a pull request may close this issue.

2 participants