ó
    F\hT  ã                   óä   • S r SSKrSSKrSSKrSSKJs  Jr  SSK	Js  J
r  SSK	JrJrJr  SSKJr   " S S\R                  5      r " S S\R                  5      r
S	 rS
 rS rS rS r\" 5         g)a  
Apply Debian-specific patches to distutils commands.

Extracts the customized behavior from patches as reported
in pypa/distutils#2 and applies those customizations (except
for scheme definitions) to those commands.

Place this module somewhere in sys.path to take effect.
é    N)Úto_filenameÚ	safe_nameÚsafe_version)ÚDistutilsOptionErrorc                   ó€   ^ • \ rS rSr\" \R                  R                  5      S/-   rU 4S jrU 4S jr	U 4S jr
SrU =r$ )Úinstallé   )zinstall-layout=Nz7installation layout to choose (known values: deb, unix)c                 ó>   >• [         TU ]  5         S U l        S U l        g ©N©ÚsuperÚinitialize_optionsÚprefix_optionÚinstall_layout©ÚselfÚ	__class__s    €Ú,/usr/lib/python3.13/_distutils_system_mod.pyr   Úinstall.initialize_options   ó   ø€ Ü‰Ñ"Ô$Ø!ˆÔØ"ˆÕó    c                 ó"  >• US:X  aù  U R                   (       aM  U R                   R                  5       S;   a  SnOÇU R                   R                  5       S;   a  SnO¦[        S5      eU R                  (       a-  [        R
                  R                  U R                  5      S:w  d  [        5       (       a  SnOK[        R
                  R                  U R                  5      S:X  a  S=U l        U l	        S=U l
        U l        Sn[        TU ]5  U5        g )	NÚposix_prefix)ÚdebÚ
deb_system)Úunixú"unknown value for --install-layoutú
/usr/localú/usrÚposix_local)r   Úlowerr   r   ÚosÚpathÚnormpathÚprefixÚis_virtual_environmentÚexec_prefixÚinstall_baseÚinstall_platbaser   Úselect_scheme)r   Únamer   s     €r   r*   Úinstall.select_scheme$   sÚ   ø€ Ø�>Ó!Ø×"×"Ø×&Ñ&×,Ñ,Ó.°'Ó9Ø'‘DØ×(Ñ(×.Ñ.Ó0°HÓ<Ø)‘Dä.Ø<ó>ð >à×%×%Ü—7‘7×#Ñ# D§K¡KÓ0°LÓ@Ü+×-Ñ-Ø%‘ä—7‘7×#Ñ# D§K¡KÓ0°LÓ@Ø5;Ð;�D”K $Ô"2Ø@FÐF�DÔ%¨Ô(=Ø$�Ü‰Ñ˜dÕ#r   c                 óD   >• U R                   U l        [        TU ]  5         g r   )r%   r   r   Úfinalize_unixr   s    €r   r.   Úinstall.finalize_unix9   s   ø€ Ø!Ÿ[™[ˆÔÜ‰ÑÕr   )r'   r(   r   r)   r%   r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__ÚlistÚorig_installr   Úuser_optionsr   r*   r.   Ú__static_attributes__Ú__classcell__©r   s   @r   r   r      s=   ø† Ù˜×,Ñ,×9Ñ9Ó:ð	Dð>ñ €Lõ
#õ
$÷* ó  r   r   c                   ó„   ^ • \ rS rSr\" \R                  R                  5      S/-   rU 4S jrU 4S jr	\
S 5       rSrU =r$ )Úinstall_egg_infoé>   )zinstall-layoutNzcustom installation layoutc                 ó>   >• [         TU ]  5         S U l        S U l        g r   r   r   s    €r   r   Ú#install_egg_info.initialize_optionsC   r   r   c                 ój   >• U R                  SS5        U R                  SS5        [        TU ]	  5         g )Nr   )r   r   )r   r   )Úset_undefined_optionsr   Úfinalize_optionsr   s    €r   rA   Ú!install_egg_info.finalize_optionsH   s0   ø€ Ø×"Ñ" 9Ð-PÔQØ×"Ñ" 9Ð-NÔOÜ‰Ñ Õ"r   c                 óŽ  • U R                   (       aG  U R                   R                  5       S;  a  [        S5      eU R                   R                  5       S:H  nOU R                  (       a  SnOSnU(       a`  [	        [        U R                  R                  5       5      5      < S[	        [        U R                  R                  5       5      5      < S3nU$ S[	        [        U R                  R                  5       5      5      [	        [        U R                  R                  5       5      5      /[        R                  S S	 Q7-  nU$ )
N)r   r   r   r   FTÚ-z	.egg-infoz%s-%s-py%d.%d.egg-infoé   )r   r!   r   r   r   r   ÚdistributionÚget_namer   Úget_versionÚsysÚversion_info)r   Úno_pyverÚbasenames      r   rL   Úinstall_egg_info.basenameM   s  € à××Ø×&Ñ&×,Ñ,Ó.°/ÓAÜ*Ø8ó:ð :à×+Ñ+×1Ñ1Ó3°uÑ<‰HØ××Ø‰HàˆHÞäœI d×&7Ñ&7×&@Ñ&@Ó&BÓCÖDÜœL¨×):Ñ):×)FÑ)FÓ)HÓIÖJðˆHð ˆð 0ÜœI d×&7Ñ&7×&@Ñ&@Ó&BÓCÓDÜœL¨×):Ñ):×)FÑ)FÓ)HÓIÓJð3ô ×!Ñ! " 1Ð%ñ3ñ ˆHð
 ˆr   )r   r   )r0   r1   r2   r3   r4   Úorig_install_egg_infor;   r6   r   rA   ÚpropertyrL   r7   r8   r9   s   @r   r;   r;   >   sF   ø† ÙÐ-×>Ñ>×KÑKÓLØ>ðPñ €Lõ#õ
#ð
 ñó ör   r;   c                  ór   • [         R                  [         R                  :g  =(       d    [        [         S5      $ )NÚreal_prefix)rI   Úbase_prefixr%   Úhasattr© r   r   r&   r&   f   s!   € Ü�?‰?œcŸj™jÑ(×G¬G´C¸Ó,GÐGr   c                 ó$  • U(       + =(       d"    [         R                  R                  U5      S;   nU (       a  U$ U(       a1  [        5       (       d"  [         R                  R	                  USSS5      $ [         R                  R	                  US5      $ )N)r   r   ÚlibÚpython3zdist-packageszsite-packages)r"   r#   r$   r&   Újoin)Ústandard_libÚ	libpythonÚearly_prefixr%   Úis_default_prefixs        r   Ú
_posix_libr]   j   sh   € Ø(Ô(×d¬B¯G©G×,<Ñ,<¸\Ó,JÐNdÑ,dÐÞØÐÞ	Ô#9×#;Ñ#;Ü�w‰w�|‰|˜F E¨9°oÓFÐFä�w‰w�|‰|˜I Ó7Ð7r   c                 óš   • SU;  aD  U S:X  a  US   nO[         R                  S   S   nU S:X  a  SU;  a  UR                  SS5      nX!S'   U$ )a.  
Given a scheme name and the resolved scheme,
if the scheme does not include headers, resolve
the fallback scheme for the name and use headers
from it. pypa/distutils#88

headers: module headers install location (posix_local is /local/ prefixed)
include: cpython headers (Python.h)
See also: bpo-44445
Úheadersr   Úincluder    z/local/z	/include/z/local/include/)r5   ÚINSTALL_SCHEMESÚreplace)r+   Úschemer_   s      r   Ú_inject_headersrd   t   s`   € ð ˜ÓØ�>Ó!Ø˜YÑ'‰Gä"×2Ñ2°>ÑBÀ9ÑMˆGØ�=Ó  Y°gÓ%=Ø—o‘o kÐ3DÓEˆGØ#ˆyÑØ€Mr   c                 ó   ^ • U 4S jnU$ )zƒ
Implement the _inject_headers modification, above, but before
_inject_headers() was introduced, upstream. So, slower and messier.
c                  ó^   >• T" 5       n U R                  5        H  u  p[        X5        M     U $ r   )Úitemsrd   )Úschemesr+   rc   Ú_load_schemess      €r   Úwrapped_load_schemesÚ2load_schemes_wrapper.<locals>.wrapped_load_schemes�   s)   ø€ Ù“/ˆØ#ŸM™MžO‰LˆDÜ˜DÖ)ñ ,àˆr   rT   )ri   rj   s   ` r   Úload_schemes_wrapperrl   Š   s   ø€ õ
ð
  Ðr   c                  ó,  • [         [        l         [        [        l        [        [
        R                  l        [        [        S5      (       a  [        [        l        g [        [        S5      (       a#  [        [        R                  5      [        l
        g g )Nrd   ri   )r   r5   r;   rN   r]   Ú	distutilsÚ	sysconfigrS   rd   rl   ri   rT   r   r   Úapply_customizationsrp   —   s\   € Ü"„LÔÜ-=ÔÔ*Ü%/„I×ÑÔ"äŒ|Ð.×/Ñ/ä'6ŒÕ$Ü	”˜×	/Ñ	/ä%9¼,×:TÑ:TÓ%UŒÕ"ð 
0r   )Ú__doc__r"   rI   Údistutils.sysconfigrn   Údistutils.command.installÚcommandr   r5   Ú"distutils.command.install_egg_infor;   rN   r   r   r   Údistutils.errorsr   r&   r]   rd   rl   rp   rT   r   r   Ú<module>rw      sz   ðñó 
Û 
ã ß 0Ð 0ß BÐ B÷ñ õ
 2ô" ˆl×"Ñ"ô " ôJ%Ð,×=Ñ=ô %òPHò8òò,
 ò
Vñ Õ r   