
    n&ph#                        S r SSKJr  SSKrSSKrSSKrSSKJr  SSKJ	r	  SSK
Jr  SSKJr  SS	KJr  SS
KJr   " S S\5      rg)zBdistutils.command.build

Implements the Distutils 'build' command.    )annotationsN)Callable)ClassVar   )show_compilers)Command)DistutilsOptionError)get_platformc                      \ rS rSr% SrSSSSSSS	S
S\" 5        S34SSSSS/rSS/rS\S'   SSS\	4/r
S\S'   S rS'S jrS'S jrS rS rS  rS! rS"\4S#\4S$\4S%\4/rS&rg)(build   z"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                    SU l         S U l        S U l        S U l        S U l        S U l        S U l        S U l        S U l        SU l	        S U l
        S U l        g )Nr   F)
build_basebuild_purelibbuild_platlib	build_lib
build_tempbuild_scriptscompiler	plat_namer   r   
executableparallelselfs    V/var/www/html/venv/lib/python3.13/site-packages/setuptools/_distutils/command/build.pyinitialize_optionsbuild.initialize_options3   s[    ! "!!

    c                   U R                   c  [        5       U l         O[        R                  S:w  a  [	        S5      eSU R                    S[
        R                  R                   3n[        R                  " S5      (       a  US-  n[        [
        S5      (       a  US-  nU R                  c/  [        R                  R                  U R                  S	5      U l        U R                  c2  [        R                  R                  U R                  S	U-   5      U l        U R                   cB  U R"                  R%                  5       (       a  U R                  U l        OU R                  U l        U R&                  c2  [        R                  R                  U R                  S
U-   5      U l        U R(                  ce  [        R                  R                  U R                  S[
        R*                  R,                   S[
        R*                  R.                   35      U l        U R0                  cG  [
        R0                  (       a2  [        R                  R3                  [
        R0                  5      U l        [5        U R6                  [8        5      (       a   [;        U R6                  5      U l        g g ! [<         a    [	        S5      ef = f)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_optionsbuild.finalize_optionsC   s   >>!)^DN
 ww$*C 
 T^^,Ac.@.@.J.J-KL ##$566c!N
 3*++j(N
 %!#doou!ED%!#doou~?U!VD
 >>!  0022!%!3!3!%!3!3 ??" ggll4??F^<STDO%!#3++112!C4D4D4J4J3KL"D
 ??"s~~ gg..s~~>DOdmmS))L #DMM 2 *  L*+JKKLs   J, ,Kc                T    U R                  5        H  nU R                  U5        M     g N)get_sub_commandsrun_command)r'   cmd_names     r(   run	build.run   s%     --/HX& 0r+   c                6    U R                   R                  5       $ rL   )r>   has_pure_modulesr&   s    r(   rS   build.has_pure_modules   s      1133r+   c                6    U R                   R                  5       $ rL   )r>   has_c_librariesr&   s    r(   rV   build.has_c_libraries         0022r+   c                6    U R                   R                  5       $ rL   )r>   r?   r&   s    r(   r?   build.has_ext_modules   rX   r+   c                6    U R                   R                  5       $ rL   )r>   has_scriptsr&   s    r(   r\   build.has_scripts   s      ,,..r+   build_py
build_clib	build_extr!   )r   r   r   r   r!   r    r"   r   r$   r   r%   r#   )returnNone)__name__
__module____qualname____firstlineno__descriptionr
   user_optionsr   __annotations__r   r   r)   rI   rP   rS   rV   r?   r\   sub_commands__static_attributes__ r+   r(   r   r      s    6K 	AVW	

 	@9A,.AQQRS	

 	8;ULU)L. -4W+=O(= 
$ :NKWLS  ;Lz'433/ 
%&	'	o&	+&	Lr+   r   )__doc__
__future__r   r4   r6   r9   collections.abcr   typingr   	ccompilerr   corer   errorsr	   utilr
   r   rl   r+   r(   <module>ru      s8   - # 	 
  $  &  ) IG Ir+   