o
    ñ‘Oj  ã                   @   sš   d Z ddlZddlZddlZddlmZmZ ddlmZ ddl	m
Z
mZmZ eeeƒƒZG dd„ dƒZej deƒ ¡ edksCJ d	ƒ‚ejd
ddd� dS )z¦Execute exactly this copy of pip, within a different environment.

This file is named as it is, to ensure that this module can't be imported via
an import statement.
é    N)Ú
ModuleSpecÚ
PathFinder)Údirname)ÚOptionalÚSequenceÚUnionc                   @   sJ   e Zd Ze		ddedeeeeef   dee	j
 dee fdd„ƒZdS )	ÚPipImportRedirectingFinderNÚfullnameÚpathÚtargetÚreturnc                 C   s0   |dkrd S t  |tg|¡}|sJ t|fƒ‚|S )NÚpip)r   Ú	find_specÚPIP_SOURCES_ROOT)Úselfr	   r
   r   Úspec© r   úX/var/www/html/pharmsmart-cdr-gen/venv/lib/python3.10/site-packages/pip/__pip-runner__.pyr      s
   z$PipImportRedirectingFinder.find_spec)NN)Ú__name__Ú
__module__Ú__qualname__ÚclassmethodÚstrr   r   r   ÚbytesÚtypesÚ
ModuleTyper   r   r   r   r   r   r      s    üþýüûr   Ú__main__z1Cannot run __pip-runner__.py as a non-main moduler   T)Úrun_nameÚ	alter_sys)Ú__doc__ÚrunpyÚsysr   Úimportlib.machineryr   r   Úos.pathr   Útypingr   r   r   Ú__file__r   r   Ú	meta_pathÚinsertr   Ú
run_moduler   r   r   r   Ú<module>   s    