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

49 lines
6.3 KiB
Plaintext
Raw Normal View History

2016-10-11 16:42:06 +00:00
î
ø¾ûWØã@ddlmZddlmZddlmZmZddlZddlZddl Z ddl
m Z ddl m
Z
mZmZddlmZddlZGdd d eƒZGd
d d eƒZdS) é)Ú convert_path)Úlog)ÚDistutilsErrorÚDistutilsOptionErrorN)Úsix)Ú DistributionÚ PathMetadataÚnormalize_path)Ú easy_installc@s™eZdZdZdZejddgZejdgZd Zd
d Z d d
Z
ddZ ddZ ddZ
ddZddZdS)ÚdevelopzSet up package for developmentz%install package in 'development mode'Ú uninstallÚUninstall this source packageú egg-path=Nú-Set the path to be used in the .egg-link fileFcCs7|jrd|_|jƒn
|jƒ|jƒdS)NT)r Z
multi_versionÚuninstall_linkÚinstall_for_developmentZwarn_deprecated_options)Úself©rú@/tmp/pip-build-fo9udfsu/setuptools/setuptools/command/develop.pyÚruns
  

z develop.runcCs5d|_d|_tj|ƒd|_d|_dS).)r Úegg_pathr
Úinitialize_optionsÚ
setup_pathZalways_copy_from)rrrrr%s
  
 zdevelop.initialize_optionscCs|jdƒ}|jrCd}|j|jf}t||ƒn|jg|_tj|ƒ|jƒ|j ƒ|j
j t j dƒƒ|jd}t
jj|j|ƒ|_|j|_|jdkt
jj|jƒ|_nt|jƒ}tt
jj|j|jƒƒ}||kr9td|ƒnt|t|t
jj|jƒƒd|jƒ|_|jjt
jdƒ}|t
jkr­d|jdƒd }n||_tt
jj|j|j|ƒƒ}|tt
jƒkr
td
|tt
jƒƒndS) 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_inforrÚegg_nameÚargsr
Úfinalize_optionsÚexpand_basedirsÚ expand_dirsZ
package_indexÚscanÚglobÚosÚpathÚjoinÚ install_dirÚegg_linkÚegg_baserÚabspathr rrrÚdistÚreplaceÚsepÚcurdirÚcountr)rÚeiÚtemplater!Z egg_link_fnÚtargetrÚprrrr",sF 



  
 $zdevelop.finalize_optionsc
Ctjt|jddƒ|jdddƒ|jdƒ|jdƒ}t|jƒ}|jdd|ƒ|jdƒ|jdddƒ|jdƒ|jdƒ}||_ ||j
_ t ||j
ƒ|j
_n-|jdƒ|jddd ƒ|jdƒ|jƒtjr7|jtjƒdt_ntjd
|j|jƒ|jst|jd ƒ"}|j|j d |jƒWdQXn|jd|j
|j ƒdS)
NZuse_2to3FÚbuild_pyZinplacerrr,Ú build_extrzCreating %s (link to %s)Ú
)rÚPY3ÚgetattrÚ distributionÚreinitialize_commandÚ run_commandrr Ú build_librr.ÚlocationrrÚ _providerZinstall_site_pyÚ
setuptoolsZbootstrap_install_fromr
rÚinfor+r,Údry_runÚopenÚwriterZprocess_distributionÚno_deps)rZbpy_cmdZ
build_pathZei_cmdÚfrrrrZs2