관리-도구
편집 파일: install_egg_info.cpython-310.opt-2.pyc
o 6��f+ � @ sb d dl mZ d dlmZmZ d dlZd dlZd dlZG dd� de�Zdd� Z dd � Z d d� ZdS )� )�Command)�log�dir_utilNc @ s8 e Zd Z dZdgZdd� Zdd� Zdd� Zd d � ZdS )�install_egg_infoz8Install package's PKG-INFO metadata as an .egg-info file)zinstall-dir=�dzdirectory to install toc C s d | _ d S �N)�install_dir��self� r �I/opt/alt/python310/lib64/python3.10/distutils/command/install_egg_info.py�initialize_options s z#install_egg_info.initialize_optionsc C sd | � dd� dtt| j�� ��tt| j�� ��gtjd d� �R }t j �| j|�| _ | j g| _d S )NZinstall_lib)r r z%s-%s-py%d.%d.egg-info� )Zset_undefined_options�to_filename� safe_name�distributionZget_name�safe_versionZget_version�sys�version_info�os�path�joinr �target�outputs)r �basenamer r r �finalize_options s ��z!install_egg_info.finalize_optionsc C s� | j }tj�|�rtj�|�stj|| jd� n'tj�|�r+| � tj | j fd| � ntj�| j�s?| � tj| jfd| j � t �d|� | jsit|ddd��}| jj�|� W d � d S 1 sbw Y d S d S )N)�dry_runz Removing z Creating z Writing %s�wzUTF-8)�encoding)r r r �isdir�islinkr Zremove_treer �existsZexecute�unlinkr �makedirsr �info�openr ZmetadataZwrite_pkg_file)r r �fr r r �run s �"��zinstall_egg_info.runc C s | j S r )r r r r r �get_outputs. s zinstall_egg_info.get_outputsN) �__name__� __module__�__qualname__�descriptionZuser_optionsr r r'