-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[WIP] Add a pip cache command to inspect the wheel cache #3146
Conversation
de1ff65
to
f809072
Compare
From
These are things that I expect to be present by default. Everything else looks looks like an extra featurecreep to me. |
f809072
to
71fe181
Compare
in pip.conf should already do it in pip 7
What features ? Filtering on a package/version and last access time ?
|
These features - cache filtering, inspection and the cache at a whole - look like a plugin functionality to
If --cache-dir can be false, then --no-cache-dir can be deprecated. Also, I still don't remember if pip tells that it uses and used versions from the cache. It seems to me that the |
71fe181
to
f1f45bc
Compare
f4f2b3b
to
e7b075f
Compare
e7b075f
to
d9f191b
Compare
d9f191b
to
2880d97
Compare
f642b4a
to
97d27db
Compare
7dfd51c
to
2b53279
Compare
2b53279
to
f75ce1e
Compare
f75ce1e
to
a5d9a57
Compare
Accidentally closed this, reopening. Sorry! |
Hello! As part of an effort to ease the contribution process and adopt a more standard workflow pip has switched to doing development on the If you do nothing, this Pull Request will be automatically migrated by @BrownTruck for you. If you would like to retain control over this pull request then you should resubmit it against the If you choose to migrate this Pull Request yourself, here is an example message that you can copy and paste:
If this pull request is no longer needed, please feel free to close it. |
I would love to see this merged. |
This Pull Request has been automatically migrated to #3734 to reparent it to the |
adds a link origin file in the cache.
allows easy inspection of the wheel cache based on project names/version/last access.
$ pip cache pillow
Pillow
- Pillow-2.8.1-cp27-none-linux_x86_64.whl
Path: /home/xfernandez/.cache/pip/wheels/09/e3/46/5e1de20caea1bd97572a0f5adc46035689968d431270cd3397
Size: 738.5kb - Last used: 2015-09-10 11:03:56.129241
- Pillow-2.8.1-cp27-none-linux_x86_64.whl
Path: /home/xfernandez/.cache/pip/wheels/16/63/c0/dc73f54d7c60d456272a53eef658d97dc2169d9aebcf4715b3
Size: 738.5kb - Last used: 2015-09-25 14:56:28.608873
- Pillow-2.8.2-cp27-none-linux_x86_64.whl
Path: /home/xfernandez/.cache/pip/wheels/1b/60/09/4ec74277e8ebecb5461975edbd67082c4d4aafea8a5a2b0c6a
Size: 738.8kb - Last used: 2015-06-30 15:39:50.618568
- Pillow-2.9.0-cp34-cp34m-linux_x86_64.whl
Path: /home/xfernandez/.cache/pip/wheels/7f/eb/5f/896eeaff26a20503359b552fac8b95bdde75fb97155d7935a3
Size: 745.6kb - Last used: 2015-08-06 15:46:51.521417
- Pillow-2.9.0-cp27-none-linux_x86_64.whl
Path: /home/xfernandez/.cache/pip/wheels/7f/eb/5f/896eeaff26a20503359b552fac8b95bdde75fb97155d7935a3
Size: 746.4kb - Last used: 2015-08-05 11:27:19.277327
- Pillow-2.9.0-cp27-none-linux_x86_64.whl
Path: /home/xfernandez/.cache/pip/wheels/95/68/ee/d6bddb5ea19b8cbe3e495fee8fb021f761596500bd5adb6956
Original link: https://pypi.example.com/root/pypi/+f/cd4/e6286fb28e277/Pillow-2.9.0.zip#md5=cd4e6286fb28e277954c011c3ce05bc4
Size: 746.4kb - Last used: 2015-09-28 10:07:30.812787
allows easy cleanup of old version or not used in a long time cached files
$ pip cache "pillow<2.9" --not-accessed-since=60 --remove
Deleting:
Proceed (yes/no)?
Still work in progress but already useful (at least for me), feedback is welcome.