Your IP : 18.117.10.207


Current Path : /lib64/python3.6/distutils/command/__pycache__/
Upload File :
Current File : //lib64/python3.6/distutils/command/__pycache__/install_egg_info.cpython-36.opt-2.pyc

3


 \+
�@s`ddlmZddlmZmZddlZddlZddlZGdd�de�Zdd�Z	dd	�Z
d
d�ZdS)�)�Command)�log�dir_utilNc@s6eZdZdZdgZdd�Zdd�Zd	d
�Zdd�Zd
S)�install_egg_infoz8Install package's PKG-INFO metadata as an .egg-info file�install-dir=�d�directory to install tocCs
d|_dS)N)�install_dir)�self�r�:/usr/lib64/python3.6/distutils/command/install_egg_info.py�initialize_optionssz#install_egg_info.initialize_optionscCsb|jdd�dtt|jj���tt|jj���ftjdd��}t	j
j|j|�|_
|j
g|_dS)NZinstall_libr	z%s-%s-py%d.%d.egg-info�)r	r	)Zset_undefined_options�to_filename�	safe_name�distributionZget_name�safe_versionZget_version�sys�version_info�os�path�joinr	�target�outputs)r
�basenamerrr�finalize_optionssz!install_egg_info.finalize_optionsc	Cs�|j}tjj|�r2tjj|�r2tj||jd�nNtjj|�rX|j	tj
|jfd|�n(tjj|j�s�|j	tj|jfd|j�t
jd|�|js�t|ddd��}|jjj|�WdQRXdS)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�frrr�run szinstall_egg_info.runcCs|jS)N)r)r
rrr�get_outputs.szinstall_egg_info.get_outputsN)rrr)	�__name__�
__module__�__qualname__ZdescriptionZuser_optionsr
rr'r(rrrrrs
rcCstjdd|�S)Nz[^A-Za-z0-9.]+�-)�re�sub)�namerrrr6srcCs|jdd�}tjdd|�S)N� �.z[^A-Za-z0-9.]+r,)�replacer-r.)�versionrrrr>srcCs|jdd�S)Nr,�_)r2)r/rrrrHsr)Z
distutils.cmdrZ	distutilsrrrrr-rrrrrrrr�<module>s+

?>