Files
Home-AssistantConfig/deps/setuptools/command/__pycache__/develop.cpython-34.pyc

49 lines
6.3 KiB
Plaintext
Raw Normal View History

2016-10-11 16:42:06 +00:00
<EFBFBD>
<EFBFBD><EFBFBD><EFBFBD>W<EFBFBD><00>@s<>ddlmZddlmZddlmZmZddlZddlZddl Z ddl
m Z ddl m Z mZmZddlmZddlZGdd <00>d e<00>ZGd
d <00>d e<00>ZdS) <0C>)<01> convert_path)<01>log)<02>DistutilsError<6F>DistutilsOptionErrorN)<01>six)<03> Distribution<6F> PathMetadata<74>normalize_path)<01> easy_installc@s<>eZdZdZdZejddgZejdgZd Zd
d <00>Z d d <00>Z
dd<00>Z dd<00>Z dd<00>Z dd<00>Zdd<00>ZdS)<1A>developzSet up package for developmentz%install package in 'development mode'<27> uninstall<6C>u<>Uninstall this source package<67> egg-path=N<>-Set the path to be used in the .egg-link fileFcCs7|jrd|_|j<00>n
|j<00>|j<00>dS)NT)r Z multi_version<6F>uninstall_link<6E>install_for_developmentZwarn_deprecated_options)<01>self<6C>r<00>@/tmp/pip-build-fo9udfsu/setuptools/setuptools/command/develop.py<70>runs
   
z develop.runcCs5d|_d|_tj|<00>d|_d|_dS)N<>.)r <00>egg_pathr
<00>initialize_options<6E>
setup_pathZalways_copy_from)rrrrr%s
    zdevelop.initialize_optionscCs|jd<00>}|jrCd}|j|jf}t||<16><00>n|jg|_tj|<00>|j<00>|j <00>|j
j t j d<00><00>|jd}t jj|j|<00>|_|j|_|jdkr<>t jj|j<00>|_nt|j<00>}tt jj|j|j<00><00>}||kr9td|<17><00>nt|t|t jj|j<00><00>d|j<00>|_|jjt jd<00>}|t jkr<>d|jd<00>d }n||_tt jj|j|j|<00><00>}|tt j<00>kr td
|tt j<00><00><00>ndS) 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 <20> project_name<6D>/z../<2F>zGCan't get a consistent path to setup script from installation directory)<1F>get_finalized_commandZbroken_egg_inforr<00>egg_name<6D>argsr
<00>finalize_options<6E>expand_basedirs<72> expand_dirsZ package_index<65>scan<61>glob<6F>os<6F>path<74>join<69> install_dir<69>egg_link<6E>egg_baser<00>abspathr rrr<00>dist<73>replace<63>sep<65>curdir<69>countr)r<00>ei<65>templater!Z egg_link_fn<66>targetr<00>prrrr",sF  

     $zdevelop.finalize_optionsc
Cs<>tjr<>t|jdd<00>r<>|jddd<00>|jd<00>|jd<00>}t|j<00>}|jdd|<00>|jd<00>|jddd<00>|jd<00>|jd<00>}||_ ||j
_ t ||j <00>|j
_n-|jd<00>|jddd <00>|jd<00>|j<00>tjr7|jtj<00>dt_ntjd
|j|j<00>|js<>t|jd <00><00>"}|j|j d |j<17>WdQXn|jd|j
|j <0C>dS) NZuse_2to3F<33>build_pyZinplacerrr,<00> build_extrzCreating %s (link to %s)<29>w<>
)r<00>PY3<59>getattr<74> distribution<6F>reinitialize_command<6E> run_commandrr <00> build_librr.<00>locationrr<00> _providerZinstall_site_py<70>
setuptoolsZbootstrap_install_fromr
r<00>infor+r,<00>dry_run<75>open<65>writerZprocess_distribution<6F>no_deps)rZbpy_cmdZ
build_pathZei_cmd<6D>frrrrZs2       
   $zdevelop.install_for_developmentcCs<>tjj|j<00>r<>tjd|j|j<00>t|j<00>}dd<00>|D<>}|j<00>||j g|j |j
gfkr<>tj d|<00>dS|j s<>tj |j<00>q<>n|j s<>|j|j<00>n|jjr<>tj d<00>ndS)NzRemoving %s (link to %s)cSsg|]}|j<00><00>qSr)<01>rstrip)<02>.0<EFBFBD>linerrr<00>
<listcomp><3E>s z*develop.uninstall_link.<locals>.<listcomp>z$Link points to %s: uninstall abortedz5Note: you must uninstall or replace scripts manually!)r'r(<00>existsr+rrDr,rF<00>closerr<00>warnrE<00>unlinkZ
update_pthr.r=<00>scripts)rZ egg_link_file<6C>contentsrrrr<00>s
    zdevelop.uninstall_linkc Cs<>||jk rtj||<00>S|j|<00>x~|jjp>gD]j}tjjt |<00><00>}tjj
|<00>}t j |<00><00>}|j <00>}WdQX|j||||<00>q?WdS)N)r.r
<00>install_egg_scripts<74>install_wrapper_scriptsr=rRr'r(r-r<00>basename<6D>iorF<00>readZinstall_script)rr.<00> script_nameZ script_path<74>strm<72> script_textrrrrT<00>s zdevelop.install_egg_scriptscCst|<00>}tj||<00>S)N)<03>VersionlessRequirementr
rU)rr.rrrrU<00>s zdevelop.install_wrapper_scripts)z uninstallr r)rNr)<10>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F> descriptionr
<00> user_options<6E>boolean_optionsZcommand_consumes_argumentsrrr"rrrTrUrrrrr s 
   . -  r c@s:eZdZdZdd<00>Zdd<00>Zdd<00>ZdS) r\az
Adapt a pkg_resources.Distribution to simply return the project
name as the 'requirement' so that scripts will work across
multiple versions.
>>> dist = Distribution(project_name='foo', version='1.0')
>>> str(dist.as_requirement())
'foo==1.0'
>>> adapted_dist = VersionlessRequirement(dist)
>>> str(adapted_dist.as_requirement())
'foo'
cCs ||_dS)N)<01>_VersionlessRequirement__dist)rr.rrr<00>__init__<5F>szVersionlessRequirement.__init__cCst|j|<00>S)N)r<rd)r<00>namerrr<00> __getattr__<5F>sz"VersionlessRequirement.__getattr__cCs|jS)N)r)rrrr<00>as_requirement<6E>sz%VersionlessRequirement.as_requirementN)r]r^r_r`rergrhrrrrr\<00>s   r\)<16>distutils.utilr<00> distutilsr<00>distutils.errorsrrr'r&rWZsetuptools.externr<00> pkg_resourcesrrr Zsetuptools.command.easy_installr
rCr <00>objectr\rrrr<00><module>s    <16>