\d`dZddlZddlZddlmZddlmZddlmZdZ GddeZ dS) zBdistutils.command.build Implements the Distutils 'build' command.N)Command)DistutilsOptionError) get_platformc&ddlm}|dS)Nrshow_compilers)distutils.ccompilerrrs (..\python\lib\distutils\command\build.pyrr s(222222Nc eZdZdZdddddddd d ezfd d d ddg ZddgZdddefgZdZ dZ dZ dZ dZ dZdZde fde fdefdefgZdS) 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|_ dS)Nr r) build_base build_purelib build_platlib build_lib build_temp build_scriptscompiler plat_namerr executableparallelselfs r initialize_optionszbuild.initialize_options8s_!"!!    r c,|jt|_ntjdkrt dd|jgt jddRz}tt dr|dz }|j*tj |j d|_|j -tj |j d|z|_ |j %|jjr |j |_ n |j|_ |j-tj |j d|z|_|j?tj |j d t jddz|_|j:t jr.tj t j|_t)|jt,r9 t/|j|_dS#t0$rt d wxYwdS) NntzW--plat-name only supported on Windows (try using './configure --help' on your platform)z .%s-%d.%dgettotalrefcountz-pydebuglibtempz scripts-%d.%dzparallel should be an integer)r rosnamersys version_infohasattrrpathjoinrrr distribution ext_modulesrrr!normpath isinstancer"strint ValueError)r$plat_specifiers r finalize_optionszbuild.finalize_optionsHs > !)^^DNN w$*KLLL%'N9I"1"9M'N'NN 3* + + ) j (N   %!#dou!E!ED    %!#do.3n.D"F"FD  > ! , 4!%!3!%!3 ? " gll4?+1N+BDDDO   %!#do.=@PQSRSQS@T.T"V"VD  ? "s~ " g..s~>>DO dmS ) ) L L #DM 2 2  L L L*+JKKK L L Ls G77Hc^|D]}||dSN)get_sub_commands run_command)r$cmd_names r runz build.runs@ --// ' 'H   X & & & & ' 'r c4|jSr=)r3has_pure_modulesr#s r rCzbuild.has_pure_moduless 11333r c4|jSr=)r3has_c_librariesr#s r rEzbuild.has_c_libraries 00222r c4|jSr=)r3has_ext_modulesr#s r rHzbuild.has_ext_modulesrFr c4|jSr=)r3 has_scriptsr#s r rJzbuild.has_scriptss ,,...r build_py build_clib build_extr)__name__ __module__ __qualname__ descriptionr user_optionsboolean_optionsr help_optionsr%r;rArCrErHrJ sub_commandsr r r r s,6K - ? @ + ( & s '<>> * + & * H ? B3 L:(O $ #^ 5 L  6L6L6Lp'''444333333/// &67!o6 o6$k2LLLr r ) __doc__r.r,distutils.corerdistutils.errorsrdistutils.utilrrr rVr r r[s--""""""111111'''''' MMMMMGMMMMMr