ΰRe/ c @ 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( i ( u easy_install( u convert_pathu
subst_vars( u Distributionu PathMetadatau normalize_path( u log( u DistutilsErroru DistutilsOptionErrorNc B s | Ee 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( u developu Set up package for developmentu% install package in 'development mode'u uninstallu uu Uninstall this source packageu egg-path=u- Set the path to be used in the .egg-link filec C s7 | j r d | _ | j n
| j | j d S( NT( u uninstallu Trueu
multi_versionu uninstall_linku install_for_developmentu warn_deprecated_options( u self( ( u3 /tmp/pip-k8wh6o-build/setuptools/command/develop.pyu run s
u develop.runc C s5 d | _ d | _ t j | d | _ d | _ d S( Nu .( u Noneu uninstallu egg_pathu easy_installu initialize_optionsu
setup_pathu always_copy_from( u self( ( u3 /tmp/pip-k8wh6o-build/setuptools/command/develop.pyu initialize_options s
u develop.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 rd | j d d } n | | _ t t
j j | j | j | } | t t
j k rυt d
| t t
j n d S( Nu egg_infou- Please rename %r to %r before using 'develop'u *.eggu .egg-linkuA --egg-path must be a relative path from the install directory to u project_nameu /u ../i uG Can't get a consistent path to setup script from installation directory( u get_finalized_commandu broken_egg_infou DistutilsErroru egg_infou egg_nameu argsu easy_installu finalize_optionsu expand_basedirsu expand_dirsu
package_indexu scanu globu osu pathu joinu install_diru egg_linku egg_baseu egg_pathu Noneu abspathu normalize_pathu DistutilsOptionErroru Distributionu PathMetadatau distu replaceu sepu curdiru countu
setup_path( u selfu eiu targetu p( ( u3 /tmp/pip-k8wh6o-build/setuptools/command/develop.pyu finalize_options' s@
"'
$u develop.finalize_optionsc C s· t j d
k rα t | j d d rα | j d d d | j d | j d } t | j } | j d d | | j d | j d d d | j d | j d } | | _
| | j _ t
| | j | j _ n- | j d | j d d d | j d | j t j r=| j t j d t _ n t j d
| j | j | j st | j d } | j | j
d | j | j n | j d | j | j d S( Ni u use_2to3u build_pyu inplacei u egg_infou egg_baseu build_exti u Creating %s (link to %s)u wu
( i F( u sysu version_infou getattru distributionu Falseu reinitialize_commandu run_commandu get_finalized_commandu normalize_pathu build_libu egg_pathu distu locationu PathMetadatau egg_infou _provideru install_site_pyu
setuptoolsu bootstrap_install_fromu easy_installu Noneu logu infou egg_linku egg_baseu dry_runu openu writeu
setup_pathu closeu process_distributionu no_deps( u selfu bpy_cmdu
build_pathu ei_cmdu f( ( u3 /tmp/pip-k8wh6o-build/setuptools/command/develop.pyu install_for_developmentV s4 $
u develop.install_for_developmentc C sν t j j | j r± t j d | j | j t | j } d d | D } | j | | j g | j | j
g f k r t j d | d S| j s± t j
| j q± n | j sΝ | j | j n | j j rι t j d n d S( Nu Removing %s (link to %s)c S s g | ] } | j q S( ( u rstrip( u .0u line( ( u3 /tmp/pip-k8wh6o-build/setuptools/command/develop.pyu