HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/setuptools/command/__pycache__/install_egg_info.cpython-310.pyc
o

[�c{�@sdddlmZmZddlZddlZddlmZddlmZddlm	Z	ddl
Z
Gdd�deje�ZdS)�)�log�dir_utilN)�Command)�
namespaces)�unpack_archivec@sBeZdZdZdZdgZdd�Zdd�Zdd�Zd	d
�Z	dd�Z
d
S)�install_egg_infoz.Install an .egg-info directory for the package)zinstall-dir=�dzdirectory to install tocCsd|_d|_d|_dS�N)�install_dir�install_layout�
prefix_option��self�r�E/usr/lib/python3/dist-packages/setuptools/command/install_egg_info.py�initialize_optionss
z#install_egg_info.initialize_optionscCs�|�dd�|�dd�tjdkr|�dd�|�d�}t�dd|j|j���d}|jrH|j�	�d	vr8t
d
��|j�	�|_|�dtjd�}n|j
sPd
tjvrQn	|�dtjd�}|j|_tj�|j|�|_g|_dS)N�install_lib)r
r
�install)rri)rr�egg_infoz	.egg-info��debz"unknown value for --install-layoutz-py%s��real_prefix)�set_undefined_options�sys�
hexversion�get_finalized_command�
pkg_resources�Distribution�egg_name�egg_versionr�lower�DistutilsOptionError�replace�PY_MAJORr�__dict__r�source�os�path�joinr
�target�outputs)r�ei_cmd�basenamerrr�finalize_optionss.�

��
z!install_egg_info.finalize_optionscCs�|�d�tj�|j�rtj�|j�stj|j|jd�ntj�	|j�r1|�
tj|jfd|j�|js:t�
|j�|�
|jdd|j|jf�|��dS)Nr)�dry_runz	Removing r�Copying %s to %s)�run_commandr'r(�isdirr*�islinkr�remove_treer/�exists�execute�unlinkr�ensure_directory�copytreer&�install_namespacesr
rrr�run2s
�zinstall_egg_info.runcCs|jSr	)r+r
rrr�get_outputs?szinstall_egg_info.get_outputscs �fdd�}t�j�j|�dS)NcsldD]}|�|�sd||vrdSq�jr'�jdvr'|�d�r't�d�dS�j�|�t�d||�|S)N)z.svn/zCVS/�/rzSOURCES.txtzSkipping SOURCES.txtr0)�
startswithrr�infor+�append�debug)�src�dst�skipr
rr�skimmerDs�
z*install_egg_info.copytree.<locals>.skimmer)rr&r*)rrErr
rr9Bszinstall_egg_info.copytreeN)�__name__�
__module__�__qualname__�__doc__�description�user_optionsrr.r;r<r9rrrrr
s�
r)
�	distutilsrrr'r�
setuptoolsrr�setuptools.archive_utilrr�	Installerrrrrr�<module>s