✏️ 编辑:cache.cpython-39.opt-1.pyc
路径:
/usr/lib/python3.9/site-packages/pip/_internal/commands/__pycache__/cache.cpython-39.opt-1.pyc
大小:6 KB · 修改:2026-05-23 08:59:54 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a �ljd � @ s� d dl Z d dlZd dlmZ d dlmZmZ d dlm m m Z d dlmZ d dl mZmZ d dlmZmZ d dlmZ ee�ZG dd � d e�ZdS ) � N)�Values)�Any�List)�Command)�ERROR�SUCCESS)�CommandError�PipError)� getLoggerc @ s e Zd ZdZdZdZdd�dd�Zeee e d�d d �Zeee dd�dd�Z eee dd�d d�Zeee dd�dd�Zee dd�dd�Zee dd�dd�Zeee dd�dd�Zeee dd�dd�Zee e d�dd�Zeee d�dd�Zee ee d �d!d"�ZdS )#�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. ``<pattern>`` can be a glob expression or a package name. Tz� %prog dir %prog info %prog list [<pattern>] [--format=[human, abspath]] %prog remove <pattern> %prog purge N)�returnc C s, | j jddddddd� | j�d| j � d S ) Nz--format�store�list_format�human)r �abspathz:Select the output format among: human (default) or abspath)�action�dest�default�choices�helpr )Zcmd_optsZ add_option�parserZinsert_option_group)�self� r �@/usr/lib/python3.9/site-packages/pip/_internal/commands/cache.py�add_options'