_dXdZddlZddlZddlmZddlmZddlmZdZ Gdd eZ y) zBdistutils.command.build Implements the Distutils 'build' command.N)Command)DistutilsOptionError) get_platformcddlm}|y)Nrshow_compilers) ccompilerr rs E/usr/lib/python3/dist-packages/setuptools/_distutils/command/build.pyr r s *c eZdZdZdddddddd d ezfd d d ddg ZddgZdddefgZdZ dZ dZ dZ dZ dZdZde fde fdefdefgZy) 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=pz6platform name to build for, if supported (default: %s))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|_ y)Nrr) build_base build_purelib build_platlib build_lib build_temp build_scriptscompiler plat_namerr executableparallelselfs r initialize_optionszbuild.initialize_options4s[!"!!    r c|jt|_ntjdk7r t ddj |jt jj}tt dr|dz }|j/tjj|jd|_ |j2tjj|jd|z|_|j=|j j#r|j|_n|j|_|j$2tjj|jd|z|_|j&Ctjj|jdt j(dd z|_|j*Bt j*r2tjj-t j*|_t/|j0t2r t5|j0|_yy#t6$r t d wxYw) NntzW--plat-name only supported on Windows (try using './configure --help' on your platform)z.{}-{}gettotalrefcountz-pydebuglibtempz scripts-%d.%drzparallel should be an integer)r!rosnamerformatsysimplementation cache_taghasattrrpathjoinrrr distributionhas_ext_modulesrr version_infor"normpath isinstancer#strint ValueError)r%plat_specifiers r finalize_optionszbuild.finalize_optionsDs >> !)^DN ww$*C "9K9K9U9UV 3* + j (N    %!#doou!ED     %!#doou~?U!VD  >> !  002!%!3!3!%!3!3 ?? " ggll4??F^DO dmmS ) L #DMM 2  * L*+JKK Ls <II-cP|jD]}|j|yN)get_sub_commands run_command)r%cmd_names r runz build.run|s* --/ 'H   X & 'r c6|jjSr@)r5has_pure_modulesr$s r rFzbuild.has_pure_moduless  1133r c6|jjSr@)r5has_c_librariesr$s r rHzbuild.has_c_libraries  0022r c6|jjSr@)r5r6r$s r r6zbuild.has_ext_modulesrIr c6|jjSr@)r5 has_scriptsr$s r rLzbuild.has_scriptss  ,,..r build_py build_clib build_extr)__name__ __module__ __qualname__ descriptionr user_optionsboolean_optionsr help_optionsr&r>rDrFrHr6rL sub_commandsr r rrs6K AVW @9   *n - 8;ULU-L2(O $ :NKL 6Lp'433/ %& ' o& +& Lr r) __doc__r/r,corererrorsrutilrr rrXr r r]s.- ) FGFr