��Qc@sqdZdZddlZddlmZddlmZddlmZm Z d�Z
defd ��YZdS(
sidistutils.command.bdist
Implements the Distutils 'bdist' command (create a built [binary]
distribution).s$Id$i�N(tget_platform(tCommand(tDistutilsPlatformErrortDistutilsOptionErrorcCslddlm}g}x6tjD]+}|jd|dtj|df�q W||�}|jd�dS(sFPrint list of available formats (arguments to "--format" option).
i�(tFancyGetoptsformats=is'List of available distribution formats:N(tdistutils.fancy_getoptRtbdisttformat_commandstappendtNonetformat_commandt
print_help(Rtformatstformattpretty_printer((s-/sys/lib/python2.7/distutils/command/bdist.pytshow_formatssRc Bs�eZdZd0ddde�fd2d3d4d5d6gZdgZdd1defgZd7Z idd6dd6dd6Z
dddddd dd!gZid8d6d9d6d:d6d;d6d<d6d=d 6d>d6d?d!6Zd-�Z
d.�Zd/�ZRS(@s$create a built (binary) distributionsbdist-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]shelp-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_nameRtdist_dirt
skip_buildtgrouptowner(tself((s-/sys/lib/python2.7/distutils/command/bdist.pytinitialize_optionsTs cCs|jdkr?|jr't�|_q?|jd�j|_n|jdkr�|jd�j}tjj |d|j�|_n|j
d�|jdkr�|jtj
g|_Wq�tk
r�tddtj
�q�n|jdkr�|_ndS(Ntbuildsbdist.Rs-don't know how to create built distributions son platform %stdist(R%R R'Rtget_finalized_commandR$t
build_basetostpathtjointensure_string_listRtdefault_formattnametKeyErrorRR&(R*R/((s-/sys/lib/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�|_n|j
|�qmWdS(Nisinvalid format '%s'R!i(RRR
R6Rtrangetlentreinitialize_commandtno_format_optionR
R)R(t keep_temptrun_command(R*tcommandsR
titcmd_nametsub_cmd((s-/sys/lib/python2.7/distutils/command/bdist.pytrunys"
(sbdist-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(s
bdist_dumbsgzip'ed tar file(s
bdist_dumbsbzip2'ed tar file(s
bdist_dumbscompressed tar file(s
bdist_dumbstar file(R"sWindows executable installer(s
bdist_dumbsZIP file(R#sMicrosoft Installer(t__name__t
__module__tdescriptionRR tuser_optionstboolean_optionsRthelp_optionsR;R4RR
R+R7RB(((s-/sys/lib/python2.7/distutils/command/bdist.pyRsJ
(t__doc__t__revision__R0tdistutils.utilRtdistutils.coreRtdistutils.errorsRRRR(((s-/sys/lib/python2.7/distutils/command/bdist.pyt<module>s
|