HEX
Server: Apache
System: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User: ws67385642 (67385642)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //kunden/lib/python3/dist-packages/setuptools/command/__pycache__/install_egg_info.cpython-39.pyc
a

i�5h{�@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	vrpt
d
��|j�	�|_|�dtjd�}n$|j
s�d
tjvr�n|�dtjd�}|j|_tj�|j|�|_g|_dS)NZinstall_lib)r
r
Zinstall)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_optionss.�

��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||vrdSq�jrN�jdvrN|�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)rr3rr
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