관리-도구
편집 파일: install_egg_info.cpython-35.pyc
�Re� � @ s~ d d l m Z m Z d d l Z d d l m Z d d l m Z d d l m Z d d l Z Gd d � d e j e � Z d S)� )�log�dir_utilN)�Command)� namespaces)�unpack_archivec @ sa e Z d Z d Z d Z d g Z d d � Z d d � Z d d � Z d d � Z d d � Z d S)�install_egg_infoz.Install an .egg-info directory for the package�install-dir=�d�directory to install toc C s d | _ d S)N)�install_dir)�self� r ��/builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/command/install_egg_info.py�initialize_options s z#install_egg_info.initialize_optionsc C s{ | j d d � | j d � } t j d d | j | j � j � d } | j | _ t j j | j | � | _ g | _ d S)N�install_libr �egg_infoz .egg-info)r r )�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� | j d � t j j | j � rT t j j | j � rT t j | j d | j �n8 t j j | j � r� | j t j | j f d | j � | j s� t j | j � | j | j f d | j | j f � | j � d S)Nr �dry_runz Removing zCopying %s to %s)�run_commandr r �isdirr �islinkr �remove_treer �exists�execute�unlinkr �ensure_directory�copytreer Zinstall_namespaces)r r r r �run! s +# zinstall_egg_info.runc C s | j S)N)r )r r r r �get_outputs. s zinstall_egg_info.get_outputsc s, � f d d � } t � j � j | � d S)Nc s[ x1 d D]) } | j | � s, d | | k r d Sq W� j j | � t j d | | � | S)N�.svn/�CVS/�/zCopying %s to %s)r+ r, )� startswithr �appendr �debug)�src�dst�skip)r r r �skimmer3 s z*install_egg_info.copytree.<locals>.skimmer)r r r )r r4 r )r r r( 1 s zinstall_egg_info.copytreeN)r r r )�__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