| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/pip/_internal/commands/__pycache__/ |
Upload File : |
�
�k�f� � � � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dl m
Z
mZ d dlm
Z
mZ d dlmZmZ ej$ e� Z G d� d e� Zd
ededefd
�Zy)� N)�Values)�List)�Command)�ERROR�SUCCESS)�
FAVORITE_HASH�
STRONG_HASHES)�read_chunks�write_outputc �: � e Zd ZdZdZdZd
d�Zdedee de
fd �Zy)�HashCommandz�
Compute a hash of a local package archive.
These can be used with --hash in a requirements file to do repeatable
installs.
z%prog [options] <file> ...T�returnNc
�� � | j j dddt dt dj dj t � � �� | j j d| j � y ) Nz-az--algorithm� algorithm�storez$The hash algorithm to use: one of {}z, )�dest�choices�action�default�helpr )�cmd_opts�
add_optionr r �format�join�parser�insert_option_group)�selfs �=C:\Python312\Lib\site-packages\pip/_internal/commands/hash.py�add_optionszHashCommand.add_options s_ � ��
�
� � ����!��!�7�>�>�� � �-�(�� !�
�
���'�'��4�=�=�9� �options�argsc
�� � |s/| j j t j � t S |j
}|D ] }t
d||t ||� � � t S )Nz%s:
--hash=%s:%s) r �print_usage�sys�stderrr r r �
_hash_of_filer )r r! r"