-
Notifications
You must be signed in to change notification settings - Fork 16
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
Expose pip
's cache dir
#107
Comments
A reminder that the goal of this library is to providing a drop-in replacement for existing uses of pip's internal API by wrapping command-line calls to pip, so any new API added here needs to have the equivalent:
This one's somewhat complicated: if I wanted to get the cache dir from pip's internal API, I'd need to do something like:
So it seems like an API to get all the options available would be preferable, but there's no CLI to get this value as far as I can tell. We might want to think about a more general API that provides various default configuration values like |
Does
Edit: It looks like |
Emphasis on "all the options", I think an API to just get the cache directory is probably too fine-grained here given how many options there are. |
Gotcha, I understand now! Yeah, there's nothing that does all config options via the |
(There's |
pypa/pip-audit#75 tries to re-use the
pip
cache whenever possible.The
pip
cache's location is normally system defined (but consistent), but it can probably be overridden.Proposed API:
pip_api.cache_dir() -> Path
, corresponding to thepip cache dir
command.The text was updated successfully, but these errors were encountered: