/usr/local/lib/python3.9/site-packages/pip/_internal/req/__pycache__
a ���h#^ � @ s~ d dl mZ d dlZd dlZd dlZd dlZd dlmZmZ d dl m Z d dlmZm Z d dlmZmZ d dlmZmZ d dlmZ d d lmZ d d lmZ d dlmZmZ d dlmZmZm Z m!Z! d d l"m#Z#m$Z$ d dl%m&Z& ee'�Z(ddddd�dd�Z)ddd�dd�Z*e*ddd�dd��Z+ddd�d d!�Z,ddd�d"d#�Z-dd$d�d%d&�Z.G d'd(� d(�Z/G d)d*� d*�Z0G d+d,� d,�Z1dS )-� )�annotationsN)� Generator�Iterable)�cache_from_source)�Any�Callable)�LegacyDistutilsInstall�UninstallMissingRecord)�get_bin_prefix�get_bin_user)�BaseDistribution)�WINDOWS)�egg_link_path_from_location)� getLogger� indent_log)�ask�normalize_path�renames�rmtree)�AdjacentTempDirectory� TempDirectory)�running_under_virtualenv�str�bool�Generator[str, None, None])�bin_dir�script_name�is_gui�returnc c sV t j�| |�}|V tsdS |� d�V |� d�V |rF|� d�V n|� d�V dS )z�Create the fully qualified name of the files created by {console,gui}_scripts for the given ``dist``. Returns the list of file names Nz.exez .exe.manifestz-script.pywz -script.py)�os�path�joinr )r r r �exe_name� r# �I/usr/local/lib/python3.9/site-packages/pip/_internal/req/req_uninstall.py� _script_names s r% z)Callable[..., Generator[Any, None, None]])�fnr c s$ t �� �dddd�� fdd��}|S )Nr zGenerator[Any, None, None])�args�kwr c ? s6 t � }� | i |��D ]}||vr|�|� |V qd S �N)�set�add)r'