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] Make this work in "dry-run" mode #187

Open
smackesey opened this issue Dec 21, 2022 · 1 comment
Open

[feature] Make this work in "dry-run" mode #187

smackesey opened this issue Dec 21, 2022 · 1 comment

Comments

@smackesey
Copy link

Would be great if this tool could leverage the relatively new pip install --dry-run to give a dep tree for a set of packages specified on the command line.

@kemzeb
Copy link
Collaborator

kemzeb commented Nov 20, 2024

With us transitioning away from using pip API, we would need to approach this differently.

Looking at pip's implementation, they use the resolvelib library to perform dependency resolution. Not sure yet how they snatch packages from PyPI (to store it temporarily), but I believe it may performed in their PipProvider class.

There are some other things I believe we should take from their install subcommand:

  • --no-install: So that users aren't forced to consider the packages already installed in their environment
  • --index-url: So that we are not dependent on just PyPI and can allow users to choose any PEP 503 compliant repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants