Ë
    ¨Õ°jÚ  ã                  óŽ   — d Z ddlmZ ddlZddlZddlZddlmZ ddlm	Z	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«      Zy)zBdistutils.command.build

Implements the Distutils 'build' command.é    )ÚannotationsN)ÚCallable)ÚAnyÚClassVaré   )Úshow_compilers)ÚCommand)ÚDistutilsOptionError)Úget_platformc                  óÖ   — e Zd ZU dZdddddddd	d
 e«       › d�fdddddgZded<   ddgZded<   dddefgZ	ded<   d„ Z
d)d„Zd)d„Zd*d„Zd*d „Zd*d!„Zd*d"„Zd#efd$efd%efd&efgZd'ed(<   y)+Úbuildz"build everything needed to install)zbuild-base=Úbz base directory for build library)zbuild-purelib=Nz2build directory for platform-neutral distributions)zbuild-platlib=Nz3build directory for platform-specific distributions)z
build-lib=NzWbuild directory for all distribution (defaults to either build-purelib or build-platlib)zbuild-scripts=Nzbuild directory for scripts)zbuild-temp=Útztemporary build directoryz
plat-name=Úpz3platform name to build for, if supported [default: ú])z	compiler=Úczspecify the compiler type)z	parallel=Újznumber of parallel build jobs)ÚdebugÚgz;compile extensions and libraries with debugging information)ÚforceÚfz2forcibly build everything (ignore file timestamps))zexecutable=Úez5specify final destination interpreter path (build.py)zHClassVar[list[tuple[str, str, str]] | list[tuple[str, str | None, str]]]Úuser_optionsr   r   zClassVar[list[str]]Úboolean_optionszhelp-compilerNzlist available compilerszAClassVar[list[tuple[str, str | None, str, Callable[[], object]]]]Úhelp_optionsc                ó¬   — d| _         d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d| _	        d | _
        d | _        y )Nr   F)Ú
build_baseÚbuild_purelibÚbuild_platlibÚ	build_libÚ
build_tempÚbuild_scriptsÚcompilerÚ	plat_namer   r   Ú
executableÚparallel©Úselfs    úY/var/www/mission/venv/lib/python3.12/site-packages/setuptools/_distutils/command/build.pyÚinitialize_optionszbuild.initialize_options5   s[   € Ø!ˆŒð "ˆÔØ!ˆÔØˆŒØˆŒØ!ˆÔØˆŒØˆŒØˆŒ
ØˆŒ
ØˆŒØˆ�ó    c                óD  — | j                   €t        «       | _         nt        j                  dk7  rt	        d«      ‚d| j                   › dt
        j                  j                  › �}t        j                  d«      r|dz  }t        t
        d«      r|dz  }| j                  €/t        j                  j                  | j                  d	«      | _        | j                  €2t        j                  j                  | j                  d	|z   «      | _        | j                   €=| j"                  j%                  «       r| j                  | _        n| j                  | _        | j&                  €2t        j                  j                  | j                  d
|z   «      | _        | j(                  €et        j                  j                  | j                  dt
        j*                  j,                  › dt
        j*                  j.                  › �«      | _        | j0                  €Bt
        j0                  r2t        j                  j3                  t
        j0                  «      | _        t5        | j6                  t8        «      r	 t;        | j6                  «      | _        y y # t<        $ r t	        d«      ‚w xY w)NÚntzW--plat-name only supported on Windows (try using './configure --help' on your platform)ú.ú-ÚPy_GIL_DISABLEDr   Úgettotalrefcountz-pydebugÚlibÚtempzscripts-zparallel should be an integer)r$   r   ÚosÚnamer
   ÚsysÚimplementationÚ	cache_tagÚ	sysconfigÚget_config_varÚhasattrr   ÚpathÚjoinr   r   r    ÚdistributionÚhas_ext_modulesr!   r"   Úversion_infoÚmajorÚminorr%   ÚnormpathÚ
isinstancer&   ÚstrÚintÚ
ValueError)r(   Úplat_specifiers     r)   Úfinalize_optionszbuild.finalize_optionsE   s  € Ø�>‰>Ð!Ü)›^ˆD�Nô
 �w‰w˜$ŠÜ*ðCóð ð
 ˜TŸ^™^Ð,¨A¬c×.@Ñ.@×.JÑ.JÐ-KÐLˆô ×#Ñ#Ð$5Ô6Ø˜cÑ!ˆNô
 ”3Ð*Ô+Ø˜jÑ(ˆNð
 ×ÑÐ%Ü!#§¡§¡¨d¯o©o¸uÓ!EˆDÔØ×ÑÐ%Ü!#§¡§¡¨d¯o©o¸uÀ~Ñ?UÓ!VˆDÔð
 �>‰>Ð!Ø× Ñ ×0Ñ0Ô2Ø!%×!3Ñ!3�•à!%×!3Ñ!3�”ð �?‰?Ð"Ü Ÿg™gŸl™l¨4¯?©?¸FÀ^Ñ<SÓTˆDŒOØ×ÑÐ%Ü!#§¡§¡Ø—‘Øœ3×+Ñ+×1Ñ1Ð2°!´C×4DÑ4D×4JÑ4JÐ3KÐLó"ˆDÔð
 �?‰?Ð"¤s§~¢~Ü Ÿg™g×.Ñ.¬s¯~©~Ó>ˆDŒOä�d—m‘m¤SÔ)ðLÜ # D§M¡MÓ 2�•ð *øô ò LÜ*Ð+JÓKÐKðLús   É.J
 Ê
Jc                óP   — | j                  «       D ]  }| j                  |«       Œ y ©N)Úget_sub_commandsÚrun_command)r(   Úcmd_names     r)   Úrunz	build.run‚   s*   € ð ×-Ñ-Ó/ò 	'ˆHØ×Ñ˜XÕ&ñ	'r+   c                ó6   — | j                   j                  «       S rK   )r>   Úhas_pure_modulesr'   s    r)   rQ   zbuild.has_pure_modules�   s   € Ø× Ñ ×1Ñ1Ó3Ð3r+   c                ó6   — | j                   j                  «       S rK   )r>   Úhas_c_librariesr'   s    r)   rS   zbuild.has_c_libraries�   ó   € Ø× Ñ ×0Ñ0Ó2Ð2r+   c                ó6   — | j                   j                  «       S rK   )r>   r?   r'   s    r)   r?   zbuild.has_ext_modules“   rT   r+   c                ó6   — | j                   j                  «       S rK   )r>   Úhas_scriptsr'   s    r)   rW   zbuild.has_scripts–   s   € Ø× Ñ ×,Ñ,Ó.Ð.r+   Úbuild_pyÚ
build_clibÚ	build_extr"   z8ClassVar[list[tuple[str, Callable[[Any], bool] | None]]]Úsub_commands)ÚreturnÚNone)r\   Úbool)Ú__name__Ú
__module__Ú__qualname__Údescriptionr   r   Ú__annotations__r   r   r   r*   rI   rO   rQ   rS   r?   rW   r[   © r+   r)   r   r      sê   … Ø6€Kð
 	AØVØWð	
ð
 	@Ø9àØØAÁ,Ã.ÐAQÐQRÐSð	
ð
 	8Ø;ØUØLØUð)	ð ð ó ð2 -4°WÐ+=€OÐ(Ó=ð 
˜$Ð :¸NÐKðW€LÐSó òó ;Lóz'ó4ó3ó3ó/ð 
Ð%Ð&Ø	�Ð'Ø	�oÐ&Ø	˜+Ð&ð	N€LÐJô r+   r   )Ú__doc__Ú
__future__r   r4   r6   r9   Úcollections.abcr   Útypingr   r   Ú	ccompilerr   Úcorer	   Úerrorsr
   Úutilr   r   rd   r+   r)   ú<module>rm      s8   ðñ-õ #ã 	Û 
Û Ý $ß  å &Ý Ý )Ý ôKˆGõ Kr+   