Ë
    óÇ: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	 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)Ú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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„ Zd„ Zd„ Zd „ Zd!efd"efd#efd$efgZ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)r   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    úx/home/mcse/projects/srt_converter/srt-converter-venv/lib/python3.12/site-packages/setuptools/_distutils/command/build.pyÚinitialize_optionszbuild.initialize_options3   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_optionsC   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 rI   )r<   Úhas_pure_modulesr%   s    r'   rO   zbuild.has_pure_modules‹   s   € Ø× Ñ ×1Ñ1Ó3Ð3r)   c                ó6   — | j                   j                  «       S rI   )r<   Úhas_c_librariesr%   s    r'   rQ   zbuild.has_c_librariesŽ   ó   € Ø× Ñ ×0Ñ0Ó2Ð2r)   c                ó6   — | j                   j                  «       S rI   )r<   r=   r%   s    r'   r=   zbuild.has_ext_modules‘   rR   r)   c                ó6   — | j                   j                  «       S rI   )r<   Úhas_scriptsr%   s    r'   rU   zbuild.has_scripts”   s   € Ø× Ñ ×,Ñ,Ó.Ð.r)   Úbuild_pyÚ
build_clibÚ	build_extr    )ÚreturnÚNone)Ú__name__Ú
__module__Ú__qualname__Údescriptionr
   Úuser_optionsr   Ú__annotations__r   r   r(   rG   rM   rO   rQ   r=   rU   Úsub_commands© r)   r'   r   r      sÔ   … Ø6€Kð 	AØVØWð	
ð
 	@Ø9àØØAÁ,Ã.ÐAQÐQRÐSð	
ð
 	8Ø;ØUØLØUð)€Lð. -4°WÐ+=€OÐ(Ó=ð 
˜$Ð :¸NÐKðW€LÐSó òó ;Lóz'ò4ò3ò3ò/ð 
Ð%Ð&Ø	�Ð'Ø	�oÐ&Ø	˜+Ð&ð	�Lr)   r   )Ú__doc__Ú
__future__r   r2   r4   r7   Úcollections.abcr   Útypingr   Ú	ccompilerr   Úcorer   Úerrorsr	   Úutilr
   r   rb   r)   r'   ú<module>rk      s8   ðñ-õ #ã 	Û 
Û Ý $Ý å &Ý Ý )Ý ôIˆGõ Ir)   