Ë
    nûàgæ  ã                   ó¬   — d dl Z d dlZd dlZd dlmZmZmZ d dlmZ ddlm	Z	 d dl
mZ d dlmZ d dlmZ  G d	„ d
ej                   e«      Z G d„ d«      Zy)é    N)Ú_normalizationÚ_pathÚ
namespaces)Úeasy_installé   )Ú_read_utf8_with_fallback)Úlog)ÚDistutilsOptionError)Úconvert_pathc                   óš   — e Zd ZdZdZej                  ddgz   Zej                  dgz   ZdZd„ Z	d„ Z
dd
„Zed„ «       Zdd„Zdd„Zd„ Zd„ Zy	)ÚdevelopzSet up package for developmentz%install package in 'development mode')Ú	uninstallÚuzUninstall this source package)z	egg-path=Nz-Set the path to be used in the .egg-link filer   Fc                 ó¬   — | j                   r(d| _        | j                  «        | j                  «        n| j	                  «        | j                  «        y )NT)r   Úmulti_versionÚuninstall_linkÚuninstall_namespacesÚinstall_for_developmentÚwarn_deprecated_options©Úselfs    úX/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/setuptools/command/develop.pyÚrunzdevelop.run   sA   € Ø�>Š>Ø!%ˆDÔØ×ÑÔ!Ø×%Ñ%Õ'à×(Ñ(Ô*Ø×$Ñ$Õ&ó    c                 óf   — d | _         d | _        t        j                  | «       d | _        d| _        y )Nú.)r   Úegg_pathr   Úinitialize_optionsÚ
setup_pathÚalways_copy_fromr   s    r   r   zdevelop.initialize_options&   s-   € ØˆŒØˆŒÜ×'Ñ'¨Ô-ØˆŒØ #ˆÕr   Nc           	      ób  — dd l }| j                  d«      }|j                  g| _        t	        j
                  | «       | j                  «        | j                  «        | j                  j                  t        j                  d«      «       t        j                  |j                  «      dz   }t        j                  j                  | j                   |«      | _        |j$                  | _        | j&                  €.t        j                  j)                  |j$                  «      | _        t+        j,                  | j$                  «      }t+        j,                  t        j                  j                  | j                   | j&                  «      «      }||k7  rt/        d|z   «      ‚|j1                  ||j3                  |t        j                  j)                  |j4                  «      «      |j                  ¬«      | _        | j9                  | j$                  | j                   | j&                  «      | _        y )Nr   Ú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   r)   zdevelop.finalize_options-   s˜  € Ûà×'Ñ'¨
Ó3ˆØ—[‘[�MˆŒ	ä×%Ñ% dÔ+Ø×ÑÔØ×ÑÔà×Ñ×Ñ¤§	¡	¨'Ó 2Ô3ô ×4Ñ4°R·[±[ÓAÀKÑOð 	ô Ÿ™Ÿ™ T×%5Ñ%5°{ÓCˆŒØŸ™ˆŒØ�=‰=Ð ÜŸG™GŸO™O¨B¯K©KÓ8ˆDŒMä—‘ §¡Ó.ˆÜ—>‘>¤"§'¡'§,¡,¨t×/?Ñ/?ÀÇÁÓ"OÓPˆØ�vÒÜ&ð!Ø#)ñ*óð ð "×.Ñ.ØØ×&Ñ& v¬r¯w©w¯©¸r¿{¹{Ó/KÓLØŸ™ð /ó 
ˆŒ	ð ×2Ñ2Ø�M‰MØ×ÑØ�M‰Mó
ˆ�r   c                 óŠ  — | j                  t        j                  d«      j                  d«      }|t        j                  k7  rd|j                  d«      dz   z  }t        j                  t        j                  j                  |||«      «      }t        j                  t        j                  «      }||k7  rt        d||«      ‚|S )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)Úreplacer0   ÚsepÚrstripÚcurdirÚcountr   r7   r1   r2   r
   )r5   r3   r   Úpath_to_setupÚresolvedrE   s         r   r;   zdevelop._resolve_setup_pathV   s¤   € ð !×(Ñ(¬¯©°Ó5×<Ñ<¸SÓAˆØœBŸI™IÒ%Ø! ]×%8Ñ%8¸Ó%=ÀÑ%AÑBˆMÜ—>‘>¤"§'¡'§,¡,¨{¸HÀmÓ"TÓUˆÜ—‘¤§	¡	Ó*ˆØ�vÒÜ&ð*àØó	ð ð Ðr   c                 óp  — | j                  d«       | j                  dd¬«       | j                  d«       t        j                  r*| j	                  t        j                  «       d t        _        | j                  «        t        j                  d| j                  | j                  «       | j                  sLt        | j                  dd¬«      5 }|j                  | j                  d	z   | j                  z   «       d d d «       | j                  d | j                   | j"                   «       y # 1 sw Y   Œ2xY w)
Nr"   Ú	build_extT)ÚinplacezCreating %s (link to %s)Úwzutf-8)Úencodingú
)Úrun_commandÚreinitialize_commandÚ
setuptoolsÚbootstrap_install_fromr   Úinstall_namespacesr	   Úinfor4   r5   Údry_runÚopenÚwriter   r   Úprocess_distributionr:   Úno_deps)r   Úfs     r   r   zdevelop.install_for_developmentk   sî   € Ø×Ñ˜Ô$ð 	×!Ñ! +°tÐ!Ô<Ø×Ñ˜Ô%ä×,Ò,Ø×Ñœj×?Ñ?Ô@Ø04ŒJÔ-à×ÑÔ!ô 	�‰Ð+¨T¯]©]¸D¿M¹MÔJØ�|Š|Ü�d—m‘m S°7Ô;ð @¸qØ—‘˜Ÿ™¨Ñ,¨t¯©Ñ>Ô?÷@ð 	×!Ñ! $¨¯	©	°t·|±|Ð3CÕD÷	@ð @ús   Ã,D,Ä,D5c                 óª  — t         j                  j                  | j                  «      rÒt	        j
                  d| j                  | j                  «       t        | j                  «      j                  «       D �cg c]  }|j                  «       ‘Œ }}|| j                  g| j                  | j                  gfvrt	        j                  d|«       y | j                  st        j                  | j                  «       | j                  s| j                  | j                   «       | j"                  j$                  rt	        j                  d«       y y c c}w )NzRemoving %s (link to %s)z$Link points to %s: uninstall abortedz5Note: you must uninstall or replace scripts manually!)r0   r1   Úexistsr4   r	   rT   r5   r   Ú
splitlinesrD   r   r   ÚwarnrU   ÚunlinkÚ
update_pthr:   ÚdistributionÚscripts)r   ÚlineÚcontentss      r   r   zdevelop.uninstall_link�   sî   € Ü�7‰7�>‰>˜$Ÿ-™-Ô(Ü�H‰HÐ/°·±ÀÇÁÔNô 5°T·]±]ÓC×NÑNÓPöàð —‘•ðˆHð ð
  §¡ °$·-±-ÀÇÁÐ1QÐRÑRÜ—‘Ð?ÀÔJØØ—<’<Ü—	‘	˜$Ÿ-™-Ô(Ø�|Š|Ø�O‰O˜DŸI™IÔ&Ø×Ñ×$Ò$ä�H‰HÐLÕMð %ùòs   Á:Ec                 óx  — || j                   urt        j                  | |«      S | j                  |«       | j                  j
                  xs g D ]h  }t        j                  j                  t        |«      «      }t        j                  j                  |«      }t        |«      }| j                  ||||«       Œj y ©N)r:   r   Úinstall_egg_scriptsÚinstall_wrapper_scriptsra   rb   r0   r1   r6   r   Úbasenamer   Úinstall_script)r   r:   Úscript_nameÚscript_pathÚscript_texts        r   rg   zdevelop.install_egg_scripts•   s£   € Ø�t—y‘yÑ ä×3Ñ3°D¸$Ó?Ð?ð
 	×$Ñ$ TÔ*ð  ×,Ñ,×4Ñ4Ò:¸ò 	MˆKÜŸ'™'Ÿ/™/¬,°{Ó*CÓDˆKÜŸ'™'×*Ñ*¨;Ó7ˆKÜ2°;Ó?ˆKØ×Ñ  k°;ÀÕLð		Mð r   c                 óD   — t        |«      }t        j                  | |«      S rf   )ÚVersionlessRequirementr   rh   ©r   r:   s     r   rh   zdevelop.install_wrapper_scripts¨   s   € Ü% dÓ+ˆÜ×3Ñ3°D¸$Ó?Ð?r   ©ÚreturnN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Údescriptionr   Úuser_optionsÚboolean_optionsÚcommand_consumes_argumentsr   r   r)   Ústaticmethodr;   r   r   rg   rh   © r   r   r   r      sz   „ Ù(à9€Kà×,Ñ,Ø;ØLð0ñ €Lð
 #×2Ñ2°k°]ÑB€Oà!&Ðò'ò$ó'
ðR ñó ðó(Eó,Nò(ó&@r   r   c                   ó*   — e Zd ZdZdd„Zdefd„Zd„ Zy)ro   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'
    Nc                 ó   — || _         y rf   )Ú_VersionlessRequirement__distrp   s     r   Ú__init__zVersionlessRequirement.__init__¼   s	   € Øˆ�r   Únamec                 ó.   — t        | j                  |«      S rf   )Úgetattrr   )r   r�   s     r   Ú__getattr__z"VersionlessRequirement.__getattr__¿   s   € Ü�t—{‘{ DÓ)Ð)r   c                 ó   — | j                   S rf   r#   r   s    r   Úas_requirementz%VersionlessRequirement.as_requirementÂ   s   € Ø× Ñ Ð r   rq   )rs   rt   ru   rv   r€   Ústrr„   r†   r|   r   r   ro   ro   ­   s   „ ñóð* ó *ó!r   ro   )r.   r0   rQ   r   r   r   Úsetuptools.command.easy_installr   Úunicode_utilsr   Ú	distutilsr	   Údistutils.errorsr
   Údistutils.utilr   ÚDevelopInstallerr   ro   r|   r   r   ú<module>rŽ      sF   ðÛ Û 	ã ß 8Ñ 8Ý 8å 4å Ý 1Ý 'ô[@ˆj×)Ñ)¨<ô [@÷|!ò !r   