3 Bu_,@sddlmZddlZddlZddlZddljjjZddl m Z ddl m Z m Z ddlmZmZddlmZerddlmZddlmZmZejeZGd d d e ZdS) )absolute_importN)Command)ERRORSUCCESS) CommandErrorPipError)MYPY_CHECK_RUNNING)Values)AnyListc@sXeZdZdZdZdZddZddZdd Zd d Z d d Z ddZ ddZ ddZ dS) CacheCommandaw Inspect and manage pip's wheel cache. Subcommands: - dir: Show the cache directory. - info: Show information about the cache. - list: List filenames of packages stored in the cache. - remove: Remove one or more package from the cache. - purge: Remove all items from the cache. ```` can be a glob expression or a package name. Tz| %prog dir %prog info %prog list [] %prog remove %prog purge cCs|j|j|j|j|jd}|js.tjdtS| s@|d|krZtjddj t |tS|d}y||||ddWn0t k r}ztj|j dtSd}~XnXt S)N)dirinfolistremovepurgezs