ó {fc@sqdZdZddlZddlmZddlmZddlmZm Z d„Z defd „ƒYZ dS( sidistutils.command.bdist Implements the Distutils 'bdist' command (create a built [binary] distribution).s$Id$iÿÿÿÿN(t get_platform(tCommand(tDistutilsPlatformErrortDistutilsOptionErrorcCslddlm}g}x6tjD]+}|jd|dtj|dfƒq W||ƒ}|jdƒdS(sFPrint list of available formats (arguments to "--format" option). iÿÿÿÿ(t FancyGetoptsformats=is'List of available distribution formats:N(tdistutils.fancy_getoptRtbdisttformat_commandstappendtNonetformat_commandt print_help(Rtformatstformattpretty_printer((s//usr/lib64/python2.7/distutils/command/bdist.pyt show_formatss Rc BsïeZdZd0dddeƒfd2d3d4d5d6gZd gZdd1defgZd7Z idd6dd6dd6Z dddddd dd!gZ id8d6d9d6d:d6d;d6d<d6d=d 6d>d6d?d!6Z d-„Z d.„Zd/„ZRS(@s$create a built (binary) distributions bdist-base=tbs4temporary directory for creating built distributionss plat-name=tps;platform name to embed in generated filenames (default: %s)sformats=s/formats for distribution (comma-separated list)s dist-dir=tds=directory to put final built distributions in [default: dist]s skip-builds2skip rebuilding everything (for testing/debugging)sowner=tus@Owner name used when creating a tar file [default: current user]sgroup=tgsAGroup name used when creating a tar file [default: current group]s help-formatss$lists available distribution formatst bdist_rpmtgztartposixtziptnttos2trpmtbztartztarttartwininsttmsisRPM distributiont bdist_dumbsgzip'ed tar filesbzip2'ed tar filescompressed tar filestar filet bdist_wininstsWindows executable installersZIP filet bdist_msisMicrosoft InstallercCsCd|_d|_d|_d|_d|_d|_d|_dS(Ni(R t bdist_baset plat_nameR tdist_dirt skip_buildtgrouptowner(tself((s//usr/lib64/python2.7/distutils/command/bdist.pytinitialize_optionsTs      cCs|jdkr?|jr'tƒ|_q?|jdƒj|_n|jdkr‚|jdƒj}tjj |d|jƒ|_n|j dƒ|j dkrãy|j tj g|_ Wqãtk rßtddtj ‚qãXn|jdkrþd|_ndS(Ntbuildsbdist.R s-don't know how to create built distributions son platform %stdist(R%R R'Rtget_finalized_commandR$t build_basetostpathtjointensure_string_listR tdefault_formattnametKeyErrorRR&(R*R/((s//usr/lib64/python2.7/distutils/command/bdist.pytfinalize_options]s$    cCs g}xN|jD]C}y|j|j|dƒWqtk rRtd|‚qXqWx¬tt|jƒƒD]•}||}|j|ƒ}||jkr®|j||_ n|dkrÕ|j |_ |j |_ n|||dkrõd|_ n|j |ƒqmWdS(Nisinvalid format '%s'R!i(R RR R6Rtrangetlentreinitialize_commandtno_format_optionR R)R(t keep_tempt run_command(R*tcommandsR titcmd_nametsub_cmd((s//usr/lib64/python2.7/distutils/command/bdist.pytrunys"     (s bdist-base=Rs4temporary directory for creating built distributionsN(sformats=Ns/formats for distribution (comma-separated list)(s dist-dir=Rs=directory to put final built distributions in [default: dist](s skip-buildNs2skip rebuilding everything (for testing/debugging)(sowner=Rs@Owner name used when creating a tar file [default: current user](sgroup=RsAGroup name used when creating a tar file [default: current group](R(RsRPM distribution(R!sgzip'ed tar file(R!sbzip2'ed tar file(R!scompressed tar file(R!star file(R"sWindows executable installer(R!sZIP file(R#sMicrosoft Installer(t__name__t __module__t descriptionRR t user_optionstboolean_optionsRt help_optionsR;R4RR R+R7RB(((s//usr/lib64/python2.7/distutils/command/bdist.pyRsJ        ( t__doc__t __revision__R0tdistutils.utilRtdistutils.coreRtdistutils.errorsRRRR(((s//usr/lib64/python2.7/distutils/command/bdist.pyts