관리-도구
편집 파일: install_egg_info.cpython-38.pyc
U ���e� � @ s\ d dl mZmZ d dlZd dlmZ d dlmZ d dlmZ d dl Z G dd� dej e�ZdS )� )�log�dir_utilN)�Command)� namespaces)�unpack_archivec @ sB e Zd ZdZdZdgZdd� Zdd� Zdd� Zd d � Z dd� Z d S )�install_egg_infoz.Install an .egg-info directory for the package)zinstall-dir=�dzdirectory to install toc C s d | _ d S �N)�install_dir��self� r �Q/opt/hc_python/lib/python3.8/site-packages/setuptools/command/install_egg_info.py�initialize_options s z#install_egg_info.initialize_optionsc C sV | � dd� | �d�}t�d d |j|j��� d }|j| _tj � | j|�| _g | _ d S )N�install_lib)r r �egg_infoz .egg-info)�set_undefined_options�get_finalized_command� pkg_resources�Distribution�egg_nameZegg_versionr �source�os�path�joinr �target�outputs)r Zei_cmd�basenamer r r �finalize_options s � ��z!install_egg_info.finalize_optionsc C s� | � d� tj�| j�r:tj�| j�s:tj| j| jd� n(tj� | j�rb| � tj| jfd| j � | jstt� | j� | � | jdd| j| jf � | �� d S )Nr )�dry_runz Removing r �Copying %s to %s)�run_commandr r �isdirr �islinkr �remove_treer �exists�execute�unlinkr �ensure_directory�copytreer Zinstall_namespacesr r 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_outputsc s � fdd�}t � j� j|� d S )Nc sD dD ] }| � |�sd| | kr d S q� j�|� t�d| |� |S )N)z.svn/zCVS/�/r )� startswithr �appendr �debug)�src�dst�skipr r r �skimmer3 s z*install_egg_info.copytree.<locals>.skimmer)r r r )r r3 r r r r) 1 s zinstall_egg_info.copytreeN)�__name__� __module__�__qualname__�__doc__�description�user_optionsr r r* r+ r) r r r r r s � r )� distutilsr r r � setuptoolsr r Zsetuptools.archive_utilr r Z Installerr r r r r �<module> s