-
Notifications
You must be signed in to change notification settings - Fork 992
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] Dependency tree with version range #17592
Comments
Hi @araffin Thanks for your question. I am not sure I understand the intention or the problem to solve. Python environments are "flat" they don't contain different versions of the same dependency in the same environment. But you can at any time resolve the dependencies for any given package, with |
Let me try to be clearer. In our institute, it happens often that there is some conflict or that version ranges are wrongly defined (too loose for instance). To debug things faster, i have a script that parses conan graph info output (either json or dot graph) to identify/understand the culprit of the conflict. Currently, to my understanding, it is only possible to retrieve the exact version chosen by conan. I would be interested in retrieving the full dependency tree of a package (both version chosen and version ranges for the full tree, not just the direct deps) when calling conan graph info. |
This is what I mean there is still something that I am missing.
Is the debug process automated? If not, why the command reported version range resolution is not enough? To understand and debug dependency graph, the |
What is your question?
Hello,
Is there currently a way to create a dependency tree of an installed package including version ranges/specifiers?
The idea would be to have something à la pipdeptree, which is pretty useful when debugging conflicts/errors with versions:
pipdeptree -p wandb -d 1
:or with
uv pip tree --package wandb --depth 1 --show-version-specifiers
:Currently, I'm only able to display a dependency tree (by parsing conan json output) with fixed version which are in the conan cache, for instance:
But i didn't find a way to easily retrieve version ranges so far...
EDIT: it seems that conan provides
resolved_ranges
in the json but only for the top package, not for the dependencies of dependencies.Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: