HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/setuptools/command/__pycache__/install_egg_info.cpython-38.pyc
U

tD7h{�@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_optionssz#install_egg_info.initialize_optionscCs�|�dd�|�dd�tjdkr.|�dd�|�d�}t�dd|j|j���d}|jr�|j�	�d	krpt
d
��|j�	�|_|�dtjd�}n$|j
s�d
tjkr�n|�dtjd�}|j|_tj�|j|�|_g|_dS)NZinstall_lib)r
r
�install)rri)rr�egg_infoz	.egg-info�Zdebz"unknown value for --install-layoutz-py%s�Zreal_prefix)Zset_undefined_options�sys�
hexversionZget_finalized_command�
pkg_resourcesZDistributionZegg_nameZegg_versionr�lowerZDistutilsOptionError�replaceZPY_MAJORr�__dict__r�source�os�path�joinr
�target�outputs)rZei_cmd�basenamerrr�finalize_optionss4�

��z!install_egg_info.finalize_optionscCs�|�d�tj�|j�r:tj�|j�s:tj|j|jd�n(tj�	|j�rb|�
tj|jfd|j�|jstt�
|j�|�
|jdd|j|jf�|��dS)Nr)�dry_runz	Removing r�Copying %s to %s)Zrun_commandrr�isdirr �islinkrZremove_treer$�existsZexecute�unlinkrZensure_directory�copytreerZinstall_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||krdSq�jrN�jdkrN|�d�rNt�d�dS�j�|�t�d||�|S)N)z.svn/zCVS/�/rzSOURCES.txtzSkipping SOURCES.txtr%)�
startswithrr�infor!�append�debug)�srcZdst�skipr
rr�skimmerDs
z*install_egg_info.copytree.<locals>.skimmer)rrr )rr4rr
rr*Bszinstall_egg_info.copytreeN)�__name__�
__module__�__qualname__�__doc__ZdescriptionZuser_optionsrr#r+r,r*rrrrr
s�
r)
Z	distutilsrrrrZ
setuptoolsrrZsetuptools.archive_utilrrZ	Installerrrrrr�<module>s