Skip to content

[WIP] Add a pip cache command to inspect the wheel cache #3734

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

Closed
wants to merge 13 commits into from

Conversation

BrownTruck
Copy link
Contributor

@BrownTruck BrownTruck commented May 26, 2016

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:

/home/xfernandez/.cache/pip/wheels/1b/60/09/4ec74277e8ebecb5461975edbd67082c4d4aafea8a5a2b0c6a/Pillow-2.8.2-cp27-none-linux_x86_64.whl
Proceed (yes/no)?

Still work in progress but already useful (at least for me), feedback is welcome.


This was automatically migrated from #3146 to reparent it to the master branch. Please see original pull request for any previous discussion.

Original Submitter: @xavfernandez


This change is Reviewable

@BrownTruck
Copy link
Contributor Author

Hello!

I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the master branch into this pull request or rebase this pull request against master then it will eligible for code review and hopefully merging!

@BrownTruck BrownTruck added the needs rebase or merge PR has conflicts with current master label May 14, 2017
@pypa-bot pypa-bot removed the needs rebase or merge PR has conflicts with current master label May 31, 2017
@pradyunsg
Copy link
Member

@xavfernandez If you don't mind, may I take this forward?

@pradyunsg
Copy link
Member

/ping @xavfernandez

@xavfernandez
Copy link
Member

@pradyunsg sorry I'm swamped in Github notifications :-/
No problem if you want to take over this :)

@pradyunsg
Copy link
Member

Closing in favour of #4685.

@pradyunsg pradyunsg closed this Aug 21, 2017
@duckinator duckinator mentioned this pull request Apr 8, 2019
10 tasks
@lock
Copy link

lock bot commented Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jul 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants