\bgahdZddlZddlZddlZddlmZddlmZddlm Z dZ Gdd eZ dS) zBdistutils.command.build Implements the Distutils 'build' command.N)Command)DistutilsOptionError) get_platformc&ddlm}|dS)Nrshow_compilers) ccompilerr rs t/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/setuptools/_distutils/command/build.pyr r s(******Nc eZdZdZdddddddd d ed fd d dddg ZddgZdddefgZdZ dZ dZ dZ dZ dZdZde fde fdefd efgZdS)!buildz"build everything needed to install)z build-base=bz 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=tztemporary build directoryz plat-name=pz3platform name to build for, if supported [default: ])z compiler=czspecify the compiler type)z parallel=jznumber of parallel build jobs)debuggz;compile extensions and libraries with debugging information)forcefz2forcibly build everything (ignore file timestamps))z executable=ez5specify final destination interpreter path (build.py)rrz help-compilerNzlist available compilerscd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ dS)NrF) build_base build_purelib build_platlib build_lib build_temp build_scriptscompiler plat_namerr executableparallelselfs r initialize_optionszbuild.initialize_options4s_!"!!    r cp|jt|_ntjdkrt dd|jdt jj}tj dr|dz }tt dr|dz }|j *tj |jd |_ |j-tj |jd |z|_|j2|jr |j|_n |j |_|j-tj |jd |z|_|j?tj |jd t jdd z|_|j:t jr.tj t j|_t1|jt4r9 t7|j|_dS#t8$rt d wxYwdS)NntzW--plat-name only supported on Windows (try using './configure --help' on your platform).-Py_GIL_DISABLEDrgettotalrefcountz-pydebuglibtempz scripts-%d.%drzparallel should be an integer)r"rosnamersysimplementation cache_tag sysconfigget_config_varhasattrrpathjoinrrr distributionhas_ext_modulesrr version_infor#normpath isinstancer$strint ValueError)r&plat_specifiers r finalize_optionszbuild.finalize_optionsDs > !)^^DNN w$*C MT^LLc.@.JLL  #$5 6 6 " c !N 3* + + ) j (N   %!#dou!E!ED    %!#dou~?U!V!VD  > ! 0022 4!%!3!%!3 ? " gll4?F^>DO dmS ) ) L L #DM 2 2  L L L*+JKKK L L Ls >HH3c^|D]}||dSN)get_sub_commands run_command)r&cmd_names r runz build.runs@ --// ' 'H   X & & & & ' 'r c4|jSrE)r:has_pure_modulesr%s r rKzbuild.has_pure_moduless 11333r c4|jSrE)r:has_c_librariesr%s r rMzbuild.has_c_libraries 00222r c4|jSrE)r:r;r%s r r;zbuild.has_ext_modulesrNr c4|jSrE)r: has_scriptsr%s r rQzbuild.has_scriptss ,,...r build_py build_clib build_extr )__name__ __module__ __qualname__ descriptionr user_optionsboolean_optionsr help_optionsr'rCrIrKrMr;rQ sub_commandsr r rrs6K AVW @9   S,,.. S S S 8;ULU)L.(O $ :NKL :L:L:Lx'''444333333/// %& ' o& +& LLLr r) __doc__r0r2r5corererrorsrutilrr rr]r r rbs-- )))))) HHHHHGHHHHHr