%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core20/2599/lib/python3.8/distutils/command/__pycache__/
Upload File :
Create Path :
Current File : //snap/core20/2599/lib/python3.8/distutils/command/__pycache__/install_egg_info.cpython-38.pyc

U

�A�`�
�@sddZddlmZddlmZmZddlZddlZddlZGdd�de�Z	dd�Z
d	d
�Zdd�ZdS)
z�distutils.command.install_egg_info

Implements the Distutils 'install_egg_info' command, for installing
a package's PKG-INFO metadata.�)�Command)�log�dir_utilNc@s<eZdZdZdZddgZdd�Zdd�Zd	d
�Zdd�Z	d
S)�install_egg_infoz)Install an .egg-info file for the packagez8Install package's PKG-INFO metadata as an .egg-info file)zinstall-dir=�dzdirectory to install to)zinstall-layoutNzcustom installation layoutcCsd|_d|_d|_dS�N)�install_dir�install_layout�
prefix_option��self�r
�8/usr/lib/python3.8/distutils/command/install_egg_info.py�initialize_optionssz#install_egg_info.initialize_optionscCs�|�dd�|�dd�|�dd�|jrP|j��dkr@td��|j��dk}n|jr\d	}nd
}|r�dtt|j����tt	|j�
���f}n6dtt|j����tt	|j�
���ftjdd
��}t
j�|j|�|_|jg|_dS)NZinstall_lib)rrZinstall)r	r	)r
r
)�debZunixz"unknown value for --install-layoutrFTz%s-%s.egg-infoz%s-%s-py%d.%d.egg-info�)Zset_undefined_optionsr	�lowerZDistutilsOptionErrorr
�to_filename�	safe_name�distributionZget_name�safe_versionZget_version�sys�version_info�os�path�joinr�target�outputs)rZno_pyver�basenamer
r
r�finalize_optionss2����z!install_egg_info.finalize_optionsc	Cs�|j}tj�|�r0tj�|�s0tj||jd�nNtj�|�rV|�	tj
|jfd|�n(tj�|j�s~|�	tj|jfd|j�t
�d|�|js�t|ddd��}|jj�|�W5QRXdS)N)�dry_runz	Removing z	Creating z
Writing %s�wzUTF-8)�encoding)rrr�isdir�islinkrZremove_treer �existsZexecute�unlinkr�makedirsr�info�openrZmetadataZwrite_pkg_file)rr�fr
r
r�run4s�zinstall_egg_info.runcCs|jSr)rrr
r
r�get_outputsBszinstall_egg_info.get_outputsN)
�__name__�
__module__�__qualname__�__doc__ZdescriptionZuser_optionsrrr+r,r
r
r
rrs�rcCst�dd|�S)z�Convert an arbitrary string to a standard distribution name

    Any runs of non-alphanumeric/. characters are replaced with a single '-'.
    �[^A-Za-z0-9.]+�-)�re�sub��namer
r
rrJsrcCs|�dd�}t�dd|�S)z�Convert an arbitrary string to a standard version string

    Spaces become dots, and all other non-alphanumeric characters become
    dashes, with runs of multiple dashes condensed to a single dash.
    � �.r1r2)�replacer3r4)�versionr
r
rrRsrcCs|�dd�S)z|Convert a project or version name to its filename-escaped form

    Any '-' characters are currently replaced with '_'.
    r2�_)r9r5r
r
rr\sr)
r0Z
distutils.cmdrZ	distutilsrrrrr3rrrrr
r
r
r�<module>s?

Zerion Mini Shell 1.0