Wccs\dZddlZddlZddlmZddlmZddlmZdZ GddeZ dS) zBdistutils.command.build Implements the Distutils 'build' command.N)Command)DistutilsOptionError) get_platformcs"ddlm}|dS)Nrshow_compilers)Zdistutils.ccompilerrr 0/usr/lib64/python3.12/distutils/command/build.pyrr s%222222Nc seZdZdZdddddddd d ezfd d d ddg ZddgZdddefgZdZ dZ dZ dZ dZ dZdZde fde fdefdefgZdS) buildz"build everything needed to install)z build-base=Zbz base directory for build library)zbuild-purelib=Nz2build directory for platform-neutral distributions)zbuild-platlib=Nz3build directory for platform-specific distributions)z build-lib=NzWbuild directory for all distribution (defaults to either build-purelib or build-platlib)zbuild-scripts=Nzbuild directory for scripts)z build-temp=Ztztemporary build directoryz plat-name=Zpz6platform name to build for, if supported (default: %s))z compiler=Zczspecify the compiler type)z parallel=Zjznumber of parallel build jobs)debugZgz;compile extensions and libraries with debugging information)forceZfz2forcibly build everything (ignore file timestamps))z executable=Zez5specify final destination interpreter path (build.py)r r z help-compilerNzlist available compilerscsd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ dS)Nr r) build_base build_purelib build_platlib build_lib build_temp build_scriptsZcompiler plat_namer r executableparallelselfrrinitialize_optionszbuild.initialize_options8s_!"!!    rcs|jt|_n"tjdkr t dd|jgt j ddRz}tt dr|dz }|j1tjj|jd|_|j4tjj|jd|z|_ |j9|jjr|j|_ n|j|_ |j 4tjj|jd|z|_|j"Ftjj|jd t j ddz|_|j$Ft j$r5tjj't j$|_t)|j*t,r t/|j*|_dSdS#t0$rt d wxYw) NZntzW--plat-name only supported on Windows (try using './configure --help' on your platform)z .%s-%d.%diZgettotalrefcountz-pydebugZlibZtempz scripts-%d.%dzparallel should be an integer)rrosZnamersysZ version_infoZhasattrr ZpathZjoinr rr distributionZ ext_modulesrrrZnormpathZ isinstancerZstrZintZ ValueError)rZplat_specifier rfinalize_optionszbuild.finalize_optionsHs  >> !)^DNN ww$*KLL%'N9I9I"19M'N'NN 3* + + j (N    %!#doou!ED     %!#doo.3n.D"FD  >> !  ,,,!%!3!3!%!3!3 ?? " ggll4??+1N+BDDO    %!#doo.=@P@PQSRS@T.T"VD  ?? "s~~~ gg..s~~>DO dmmS ) ) L #DMM 2  * ) L L L*+JKK Ls I""I:csT|jD]}|j|dSN)Zget_sub_commandsZ run_command)rZcmd_namerrrunz build.runs: --/ ' 'H   X & & & ' 'rc8|jjSr)rhas_pure_modulesrrrr zbuild.has_pure_moduless  1133rcrr)rhas_c_librariesrrrr!zbuild.has_c_libraries  0022rcrr)rhas_ext_modulesrrrr#zbuild.has_ext_modulesr"rcrr)r has_scriptsrrrr$zbuild.has_scriptss  ,,..rZbuild_pyZ build_clibZ build_extr)Z__name__Z __module__Z __qualname__Z descriptionrZ user_optionsZboolean_optionsrZ help_optionsrrrr r!r#r$Z sub_commandsrrr r s*6K - ? @ + ( & s '<> * + & * H ? B3 L:(O $ #^ 5 L  6L6L6Lp'''444333333/// &67!o6 o6$k2LLLrr ) Z__doc__rrZdistutils.corerZdistutils.errorsrZdistutils.utilrrr r%rrr&s--""""""111111'''''' MMMMMGMMMMr