+
     h  c                   s    ^ 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                   s   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                s    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_linkZuninstall_namespacesinstall_for_developmentZwarn_deprecated_optionsself   &?/usr/lib/python3.14/site-packages/setuptools/command/develop.pyrunZdevelop.run   sC    >>>!%D!%%'((*$$&    c                sj    R V n         R V n        \        P                  ! V 4       R V n        RV n        R # )NZ.)r
   egg_pathr   initialize_options
setup_pathalways_copy_fromr   r   r   r   Zdevelop.initialize_options&   s-    ''- #r   c                   < V ^8  d   QhRR/#    ZreturnN Zformat__classdict__   "r   __annotate__develop.__annotate__-   s     '
 '
$ '
r   c           	     s   ^ 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 Zproject_name)pkg_resourcesZget_finalized_commandZegg_nameargsr   finalize_optionsZexpand_basedirsZexpand_dirsZpackage_indexZscanglobr   Zfilename_component_brokenospathjoininstall_diregg_linkegg_baser   abspathr   normpathr   ZDistributionZPathMetadatar!   dist_resolve_setup_pathr   )r   r#   ZeiZegg_link_fnZtargetr   s   &     r   r%   Z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                s   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/z../zGCan't get a consistent path to setup script from installation directory)Zreplacer'   ZseprstripcurdirZcountr   r.   r(   r)   r   )r,   r*   r   Zpath_to_setupZresolvedr2   s   &&&   r   r0   Zdevelop._resolve_setup_pathV   s     !((5<<SABII%!]%8%8%=%ABM>>"'',,{m"TU		*&*	  r   c                r   r   r   r   r   r   r   r    k   s     E E Er   c                s   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!   Z	build_extT)ZinplaceNzCreating %s (link to %s)Zwzutf-8)ZencodingZ
)Zrun_commandZreinitialize_command
setuptoolsZbootstrap_install_fromr   Zinstall_namespacesr   infor+   r,   dry_runZopenZwriter   r   Zprocess_distributionr/   Zno_deps)r   Zfs   & r   r   Zdevelop.install_for_developmentk   s    $ 	!!+t!<%,,,j??@04J-! 	+T]]DMMJ|||dmmS7;;q,t>? < 	!!$		t||3CD	 <;s   $4EE	c                r   r   r   r   r   r   r   r       s     N N Nr   c                s   \         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!)r'   r(   Zexistsr+   r   r4   r,   r   Z
splitlinesr1   r   r   Zwarnr5   ZunlinkZ
update_pthr/   distributionscripts)r   ZlineZcontentss   &  r   r   Z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                s   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)r/   r   install_egg_scriptsinstall_wrapper_scriptsr6   r7   r'   r(   r-   r   Zbasenamer   Zinstall_script)r   r/   Zscript_nameZscript_pathZscript_texts   &&   r   r9   Zdevelop.install_egg_scripts   s    yy 33D??
 	$$T*  ,,44:::K''//,{*CDK''**;7K2;?K;L	 ; r   c                sD    \        V4      p\        P                  ! W4      # r8   )VersionlessRequirementr   r:   r   r/      &&r   r:   Zdevelop.install_wrapper_scripts   s    %d+33D??r   )	r   r$   r/   r,   r+   r   r   r   r
   )r
   Z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__Zdescriptionr   Zuser_optionsZboolean_optionsZcommand_consumes_argumentsr   r   r%   Zstaticmethodr0   r   r   r9   r:   __static_attributes____classdictcell__r      @r   r	   r	      s     (9K,,;L0 L
 #22k]BO!&'$'
 '
R  (E E,N N(&@ @r   r	   c                   sN   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                r   r   r   r   r   r   r   #VersionlessRequirement.__annotate__   s       r   c                s    Wn         R # r8   )_VersionlessRequirement__distr<   r=   r   __init__ZVersionlessRequirement.__init__   s    r   c                s    < V ^8  d   QhRS[ /# )r   name)Zstrr   r   r   r   rG      s     * * *r   c                s.    \        V P                  V4      # r8   )ZgetattrrH   )r   rJ   r=   r   __getattr__Z"VersionlessRequirement.__getattr__   s    t{{D))r   c                s    V P                   # r8   r"   r   r   r   as_requirementZ%VersionlessRequirement.as_requirement   s       r   )Z__distN)
r>   r?   r@   rA   rB   rI   rK   rL   rC   rD   rE   rF   r   r;   r;      s(      * *! !r   r;   )r&   r'   r3   r   r   r   Zsetuptools.command.easy_installr   Zunicode_utilsr   Z	distutilsr   Zdistutils.errorsr   Zdistutils.utilr   ZDevelopInstallerr	   r;   r   r   r   <module>rM      sF     	  8 8 8 4  1 '[@j))< [@|! !r   