관리-도구
편집 파일: develop.cpython-34.pyc
� M�Re/ � @ s� d d l m Z d d l m Z m Z d d l m Z m Z m Z d d l m Z d d l m Z m Z d d l Z d d l Z d d l Z d d l Z Gd d � d e � Z d S) � )�easy_install)�convert_path� subst_vars)�Distribution�PathMetadata�normalize_path)�log)�DistutilsError�DistutilsOptionErrorNc @ s� e Z d Z d Z d Z e j d d g Z e j d g Z d Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d S)�developzSet up package for developmentz%install package in 'development mode'� uninstall�u�Uninstall this source package� egg-path=N�-Set the path to be used in the .egg-link fileFc C s7 | j r d | _ | j � n | j � | j � d S)NT)r Z multi_version�uninstall_link�install_for_developmentZwarn_deprecated_options)�self� r �5/tmp/pip-l4uy7dan-build/setuptools/command/develop.py�run s zdevelop.runc C s5 d | _ d | _ t j | � d | _ d | _ d S)N�.)r �egg_pathr �initialize_options� setup_pathZalways_copy_from)r r r r r s zdevelop.initialize_optionsc C s� | j d � } | j r7 t d | j | j f � � n | j g | _ t j | � | j � | j � | j j t j d � � t j j | j | j d � | _ | j | _ | j d k r� t j j | j � | _ n t | j � } t t j j | j | j � � | k r!t d | � � n t | t | t j j | j � � d | j �| _ | j j t j d � } | t j k r�d | j d � d } n | | _ t t j j | j | j | � � } | t t j � k r�t d | t t j � � � n d S)N�egg_infoz-Please rename %r to %r before using 'develop'z*.eggz .egg-linkzA--egg-path must be a relative path from the install directory to �project_name�/z../� zGCan't get a consistent path to setup script from installation directory)�get_finalized_commandZbroken_egg_infor r �egg_name�argsr �finalize_options�expand_basedirs�expand_dirsZ package_index�scan�glob�os�path�join�install_dir�egg_link�egg_baser �abspathr r r r �dist�replace�sep�curdir�countr )r �ei�target�pr r r r"