CasperSecurity

Current Path : /lib/python3.10/distutils/command/__pycache__/
Upload File :
Current File : //lib/python3.10/distutils/command/__pycache__/install_egg_info.cpython-310.pyc

o

��bc�
�@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
�9/usr/lib/python3.10/distutils/command/install_egg_info.py�initialize_optionss
z#install_egg_info.initialize_optionscCs�|�dd�|�dd�|�dd�|jr(|j��dvr td��|j��dk}n|jr.d	}nd
}|rGdtt|j����tt	|j�
���f}ndtt|j����tt	|j�
���gtjdd
��R}t
j�|j|�|_|jg|_dS)N�install_lib)rr�install)r	r	)r
r
)�deb�unixz"unknown value for --install-layoutrFTz%s-%s.egg-infoz%s-%s-py%d.%d.egg-info�)�set_undefined_optionsr	�lower�DistutilsOptionErrorr
�to_filename�	safe_name�distribution�get_name�safe_version�get_version�sys�version_info�os�path�joinr�target�outputs)r�no_pyver�basenamer
r
r�finalize_optionss2����z!install_egg_info.finalize_optionscCs�|j}tj�|�rtj�|�stj||jd�n'tj�|�r+|�	tj
|jfd|�ntj�|j�s?|�	tj|jfd|j�t
�d|�|jsit|ddd��}|jj�|�Wd�dS1sbwYdSdS)N)�dry_runz	Removing z	Creating z
Writing %s�wzUTF-8)�encoding)r#r r!�isdir�islinkr�remove_treer(�exists�execute�unlinkr�makedirsr�info�openr�metadata�write_pkg_file)rr#�fr
r
r�run4s�"��zinstall_egg_info.runcCs|jSr)r$rr
r
r�get_outputsBszinstall_egg_info.get_outputsN)
�__name__�
__module__�__qualname__�__doc__�description�user_optionsrr'r7r8r
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.
    � �.r?r@)�replacerArB)�versionr
r
rrRsrcCs|�dd�S)z|Convert a project or version name to its filename-escaped form

    Any '-' characters are currently replaced with '_'.
    r@�_)rGrCr
r
rr\sr)
r<�
distutils.cmdr�	distutilsrrr rrArrrrr
r
r
r�<module>s?
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY