+
    h                         ^ RI t ^ RIt^ RIt^ RIHtHtHt ^ RIHt ^RIH	t	 ^ RI
Ht ^ RIHt ^ RIHt  ! R R	]P                   ]4      t ! R
 R4      tR# )    N)_normalization_path
namespaces)easy_install)_read_utf8_with_fallback)log)DistutilsOptionError)convert_pathc                      a  ] tR t^t o RtRt]P                  RR.,           t]P                  R.,           tRt	R t
R tV 3R lR	 lt]R
 4       tV 3R lR ltV 3R lR ltR tR tRtV tR# )developzSet up package for developmentz%install package in 'development mode'	uninstallNFc                    V P                   '       d)   R V n        V P                  4        V P                  4        MV P	                  4        V P                  4        R# )TN)r   multi_versionuninstall_linkuninstall_namespacesinstall_for_developmentwarn_deprecated_optionsselfs   &</usr/lib/python3/dist-packages/setuptools/command/develop.pyrundevelop.run   sC    >>>!%D!%%'((*$$&    c                j    R V n         R V n        \        P                  ! V 4       R V n        RV n        R # )N.)r   egg_pathr   initialize_options
setup_pathalways_copy_fromr   s   &r   r   develop.initialize_options&   s-    ''- #r   c                   < V ^8  d   QhRR/#    returnN )format__classdict__s   "r   __annotate__develop.__annotate__-   s     '
 '
$ '
r   c           	        ^ RI pV P                  R4      pVP                  .V n        \        P
                  ! V 4       V P                  4        V P                  4        V P                  P                  \        P                  ! R4      4       \        P                  ! VP                  4      R,           p\        P                  P                  V P                   V4      V n        VP$                  V n        V P&                  f/   \        P                  P)                  VP$                  4      V n        \*        P,                  ! V P$                  4      p\*        P,                  ! \        P                  P                  V P                   V P&                  4      4      pWT8w  d   \/        RV,           4      hVP1                  VVP3                  V\        P                  P)                  VP4                  4      4      VP                  R7      V n        V P9                  V P$                  V P                   V P&                  4      V n        R# )r   Negg_infoz*.eggz	.egg-linkzA--egg-path must be a relative path from the install directory to project_name)pkg_resourcesget_finalized_commandegg_nameargsr   finalize_optionsexpand_basedirsexpand_dirspackage_indexscanglobr   filename_component_brokenospathjoininstall_diregg_linkegg_baser   abspathr   normpathr	   DistributionPathMetadatar+   dist_resolve_setup_pathr   )r   r.   eiegg_link_fntargetr   s   &     r   r2   develop.finalize_options-   s   ''
3[[M	%%d+		' 23 44R[[AKO 	 T%5%5{C== GGOOBKK8DM.>>"'',,t/?/?"OP&!#)*  "..&&vrwwr{{/KL / 
	 22MMMM
r   c                   V P                  \        P                  R4      P                  R4      pV\        P                  8w  d    RVP                  R4      ^,           ,          p\        P                  ! \        P                  P                  WV4      4      p\        P                  ! \        P                  4      pWE8w  d   \        RVV4      hV# )z
Generate a path from egg_base back to '.' where the
setup script resides and ensure that path points to the
setup path from $install_dir/$egg_path.
/z../zGCan't get a consistent path to setup script from installation directory)replacer9   seprstripcurdircountr   r@   r:   r;   r	   )r>   r<   r   path_to_setupresolvedrN   s   &&&   r   rD   develop._resolve_setup_pathV   s     !((5<<SABII%!]%8%8%=%ABM>>"'',,{m"TU		*&*	  r   c                   < V ^8  d   QhRR/# r"   r%   )r&   r'   s   "r   r(   r)   k   s     E E Er   c                   V P                  R 4       V P                  RRR7       V P                  R4       \        P                  '       d+   V P	                  \        P                  4       R\        n        V P                  4        \        P                  ! RV P                  V P                  4       V P                  '       g]   \        V P                  RRR7      ;_uu_ 4       pVP                  V P                  R	,           V P                  ,           4       RRR4       V P                  RV P                   V P"                  '       * 4       R#   + '       g   i     L>; i)
r+   	build_extT)inplaceNzCreating %s (link to %s)wzutf-8)encoding
)run_commandreinitialize_command
setuptoolsbootstrap_install_fromr   install_namespacesr   infor=   r>   dry_runopenwriter   r   process_distributionrC   no_deps)r   fs   & r   r   develop.install_for_developmentk   s    $ 	!!+t!<%,,,j??@04J-! 	+T]]DMMJ|||dmmS7;;q,t>? < 	!!$		t||3CD	 <;s   $4EE	c                   < V ^8  d   QhRR/# r"   r%   )r&   r'   s   "r   r(   r)      s     N N Nr   c                   \         P                  P                  V P                  4      '       d   \        P
                  ! R V P                  V P                  4       \        V P                  4      P                  4        Uu. uF  pVP                  4       NK  	  ppW P                  .V P                  V P                  .39  d   \        P                  ! RV4       R# V P                  '       g!   \         P                  ! V P                  4       V P                  '       g   V P                  V P                   4       V P"                  P$                  '       d   \        P                  ! R4       R# R# u upi )zRemoving %s (link to %s)z$Link points to %s: uninstall abortedNz5Note: you must uninstall or replace scripts manually!)r9   r:   existsr=   r   r_   r>   r   
splitlinesrM   r   r   warnr`   unlink
update_pthrC   distributionscripts)r   linecontentss   &  r   r   develop.uninstall_link   s    77>>$--((HH/N 5T]]CNNPPD P  
 $--1QRR?J<<<		$--(|||OODII&$$$HHLM %s   E3c                   WP                   Jd   \        P                  ! W4      # V P                  V4       V P                  P
                  ;'       g    .  Fg  p\        P                  P                  \        V4      4      p\        P                  P                  V4      p\        V4      pV P                  WWC4       Ki  	  R # N)rC   r   install_egg_scriptsinstall_wrapper_scriptsrn   ro   r9   r:   r?   r
   basenamer   install_script)r   rC   script_namescript_pathscript_texts   &&   r   ru   develop.install_egg_scripts   s    yy 33D??
 	$$T*  ,,44:::K''//,{*CDK''**;7K2;?K;L	 ; r   c                D    \        V4      p\        P                  ! W4      # rt   )VersionlessRequirementr   rv   r   rC   s   &&r   rv   develop.install_wrapper_scripts   s    %d+33D??r   )	r   r1   rC   r>   r=   r   r   r   r   )r   uzUninstall this source package)z	egg-path=Nz-Set the path to be used in the .egg-link file)__name__
__module____qualname____firstlineno____doc__descriptionr   user_optionsboolean_optionscommand_consumes_argumentsr   r   r2   staticmethodrD   r   r   ru   rv   __static_attributes____classdictcell__r'   s   @r   r   r      s     (9K,,;L0 L
 #22k]BO!&'$'
 '
R  (E E,N N(&@ @r   r   c                   N   a  ] tR t^t o RtV 3R lR ltV 3R lR ltR tRtV t	R# )	r~   a}  
Adapt a pkg_resources.Distribution to simply return the project
name as the 'requirement' so that scripts will work across
multiple versions.

>>> from pkg_resources import Distribution
>>> 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'
c                   < V ^8  d   QhRR/# r"   r%   )r&   r'   s   "r   r(   #VersionlessRequirement.__annotate__   s       r   c                    Wn         R # rt   )_VersionlessRequirement__distr   s   &&r   __init__VersionlessRequirement.__init__   s    r   c                    < V ^8  d   QhRS[ /# )r#   name)str)r&   r'   s   "r   r(   r      s     * * *r   c                .    \        V P                  V4      # rt   )getattrr   )r   r   s   &&r   __getattr__"VersionlessRequirement.__getattr__   s    t{{D))r   c                    V P                   # rt   r,   r   s   &r   as_requirement%VersionlessRequirement.as_requirement   s       r   )__distN)
r   r   r   r   r   r   r   r   r   r   r   s   @r   r~   r~      s(      * *! !r   r~   )r7   r9   r\   r   r   r   setuptools.command.easy_installr   unicode_utilsr   	distutilsr   distutils.errorsr	   distutils.utilr
   DevelopInstallerr   r~   r%   r   r   <module>r      sF     	  8 8 8 4  1 '[@j))< [@|! !r   