<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
3
PfD                 @   s`   d dl mZ d dlZd dlmZ d dlmZmZmZ d dl	m
Z
 d dlmZ G dd de
ZdS )	    )absolute_importN)
WheelCache)InstallRequirementRequirementSetparse_requirements)Command)InstallationErrorc                   s4   e Zd ZdZdZdZdZ fddZdd Z  Z	S )	UninstallCommandaB  
    Uninstall packages.

    pip is able to uninstall most installed packages. Known exceptions are:

    - Pure distutils packages installed with ``python setup.py install``, which
      leave behind no metadata to determine what files were installed.
    - Script wrappers installed by ``python setup.py develop``.
    	uninstallzU
      %prog [options] <package> ...
      %prog [options] -r <requirements file> ...zUninstall packages.c          	      sV   t t| j|| | jjddddg ddd | jjdd	d
ddd | jjd| j d S )Nz-rz--requirementrequirementsappendfilezjUninstall all the packages listed in the given requirements file.  This option can be used multiple times.)destactiondefaultmetavarhelpz-yz--yesyes
store_truez2Don't ask for confirmation of uninstall deletions.)r   r   r   r   )superr	   __init__Zcmd_optsZ
add_optionparserZinsert_option_group)selfargskw)	__class__ /usr/lib/python3.6/uninstall.pyr      s    zUninstallCommand.__init__c       
      C   s   | j |}tjjt t }t|j|}td d d |j||d}x$|D ]}|j	t
j||j|d qFW x2|jD ](}x"t||||dD ]}	|j	|	 qW qnW |jstdt| jd |j|jd W d Q R X d S )N)Z	build_dirZsrc_dirZdownload_dirisolatedsessionwheel_cache)r   r    )optionsr   r    zLYou must give at least one requirement to %(name)s (see "pip help %(name)s"))name)Zauto_confirm)Z_build_sessionpipindexZFormatControlsetr   	cache_dirr   Zisolated_modeZadd_requirementr   Z	from_liner   r   Zhas_requirementsr   dictr"   r
   r   )
r   r!   r   r   Zformat_controlr    Zrequirement_setr"   filenameZreqr   r   r   run-   s6    
zUninstallCommand.run)
__name__
__module____qualname____doc__r"   ZusageZsummaryr   r)   __classcell__r   r   )r   r   r	   
   s   	r	   )Z
__future__r   r#   Z	pip.wheelr   Zpip.reqr   r   r   Zpip.basecommandr   Zpip.exceptionsr   r	   r   r   r   r   <module>   s   