B š•Re,ã@s²ddlmZddlZddlZddlZddlmmmZddl m Z ddl m Z m Z ddlmZmZddlmZer”ddlmZddlmZmZe e¡ZGd d „d e ƒZdS) é)Úabsolute_importN)ÚCommand)ÚERRORÚSUCCESS)Ú CommandErrorÚPipError)ÚMYPY_CHECK_RUNNING)ÚValues)ÚAnyÚListc@sXeZdZdZdZdZdd„Zdd„Zdd „Zd d „Z d d „Z dd„Z dd„Z dd„Z 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 c Cs²|j|j|j|j|jdœ}|js.t d¡tS|r>|d|krXt dd  t |ƒ¡¡tS|d}y||||dd…ƒWn2t k r¬}zt |j d¡tSd}~XYnXt S)N)ÚdirÚinfoÚlistÚremoveÚpurgezs