ó {fc@swdZdZddlZddlZddlmZddlmZddlm Z d„Z defd „ƒYZ dS( sBdistutils.command.build Implements the Distutils 'build' command.s$Id$iÿÿÿÿN(t get_platform(tCommand(tDistutilsOptionErrorcCsddlm}|ƒdS(Niÿÿÿÿ(tshow_compilers(tdistutils.ccompilerR(R((s//usr/lib64/python2.7/distutils/command/build.pyR stbuildc BsÜeZdZd,d.d/dd-d d fd0d1dddeƒfd2d3d4d5g ZddgZdd-d efgZd!„Z d"„Z d#„Z d$„Z d%„Z d&„Zd'„Zd(e fd)e fd*efd+efgZRS(6s"build everything needed to installs build-base=tbs base directory for build librarysbuild-purelib=s2build directory for platform-neutral distributionssbuild-platlib=s3build directory for platform-specific distributionss build-lib=s9build directory for all distribution (defaults to either sbuild-purelib or build-platlibsbuild-scripts=sbuild directory for scriptss build-temp=ttstemporary build directorys plat-name=tps6platform name to build for, if supported (default: %s)s compiler=tcsspecify the compiler typetdebugtgs;compile extensions and libraries with debugging informationtforcetfs2forcibly build everything (ignore file timestamps)s executable=tes5specify final destination interpreter path (build.py)s help-compilerslist available compilerscCsgd|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ dS(NRi( t build_basetNonet build_purelibt build_platlibt build_libt build_tempt build_scriptstcompilert plat_nameR R t executable(tself((s//usr/lib64/python2.7/distutils/command/build.pytinitialize_options7s          cCs¯|jdkrtƒ|_ntjdkr<tdƒ‚nd|jtjdd!f}ttdƒru|d7}n|j dkr¢tj j |j dƒ|_ n|j dkrÓtj j |j d|ƒ|_ n|jdkr |jjrý|j |_q |j |_n|jdkr=tj j |j d |ƒ|_n|jdkrxtj j |j d tjdd!ƒ|_n|jdkr«tjr«tj jtjƒ|_ndS( NtntsW--plat-name only supported on Windows (try using './configure --help' on your platform)s.%s-%siitgettotalrefcounts-pydebugtlibttempsscripts-(RRRtostnameRtsystversionthasattrRtpathtjoinRRRt distributiont ext_modulesRRRtnormpath(Rtplat_specifier((s//usr/lib64/python2.7/distutils/command/build.pytfinalize_optionsFs2   cCs(x!|jƒD]}|j|ƒq WdS(N(tget_sub_commandst run_command(Rtcmd_name((s//usr/lib64/python2.7/distutils/command/build.pytrunxscCs |jjƒS(N(R&thas_pure_modules(R((s//usr/lib64/python2.7/distutils/command/build.pyR/ƒscCs |jjƒS(N(R&thas_c_libraries(R((s//usr/lib64/python2.7/distutils/command/build.pyR0†scCs |jjƒS(N(R&thas_ext_modules(R((s//usr/lib64/python2.7/distutils/command/build.pyR1‰scCs |jjƒS(N(R&t has_scripts(R((s//usr/lib64/python2.7/distutils/command/build.pyR2Œstbuild_pyt build_clibt build_extR(s build-base=Rs base directory for build libraryN(sbuild-purelib=Ns2build directory for platform-neutral distributions(sbuild-platlib=Ns3build directory for platform-specific distributions(sbuild-scripts=Nsbuild directory for scripts(s build-temp=Rstemporary build directory(s compiler=R sspecify the compiler type(R R s;compile extensions and libraries with debugging information(R R s2forcibly build everything (ignore file timestamps)(s executable=Rs5specify final destination interpreter path (build.py)(t__name__t __module__t descriptionRRt user_optionstboolean_optionsRt help_optionsRR*R.R/R0R1R2t sub_commands(((s//usr/lib64/python2.7/distutils/command/build.pyRsN     2       ( t__doc__t __revision__R!Rtdistutils.utilRtdistutils.coreRtdistutils.errorsRRR(((s//usr/lib64/python2.7/distutils/command/build.pyts