�
��c @s{dZdZddkZddkZddkTddklZddkTddkl Z d�Z
defd ��YZdS(
sidistutils.command.bdist
Implements the Distutils 'bdist' command (create a built [binary]
distribution).s1$Id: bdist.py 37828 2004-11-10 22:23:15Z loewis $i�N(t*(tCommand(tget_platformcCslddkl}g}x6tiD]+}|id|dti|df�q W||�}|id�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/python/distutils/command/bdist.pytshow_formatss
RcBs�eZdZd'ddde�fd)d*d+gZdgZdd(defgZd,Z hdd<dd<dd<Z
dddddddgZhd-d<d.d<d/d<d0d<d1d<d2d<d3d<d4d<Zd$�Z
d%�Zd&�ZRS(5s$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)shelp-formatss$lists available distribution formatst bdist_rpmtgztartposixtziptnttos2trpmtbztartztarttartwininstsRPM distributiont
bdist_dumbsZIP filesgzip'ed tar filesbzip2'ed tar filescompressed tar filestar filet
bdist_wininstsWindows executable installercCs1d|_d|_d|_d|_d|_dS(Ni(Rt
bdist_baset plat_nameRtdist_dirt
skip_build(tself((s*/sys/lib/python/distutils/command/bdist.pytinitialize_optionsWs
cCs�|idjot�|_n|idjo5|id�i}tii|d|i�|_n|i d�|i
djoHy|itig|_
Wq�t
j
otddti�q�Xn|idjo
d|_ndS(Ntbuildsbdist.Rs-don't know how to create built distributions son platform %stdist(R RRRtget_finalized_commandt
build_basetostpathtjointensure_string_listRtdefault_formattnametKeyErrortDistutilsPlatformErrorR!(R#R(((s*/sys/lib/python/distutils/command/bdist.pytfinalize_optionsas
cCs�g}xP|iD]E}y|i|i|d�Wqtj
otd|�qXqWx�tt|i��D]r}||}|i|�}||ijo|i||_ n|||djo
d|_
n|i|�qoWdS(Nisinvalid format '%s'i(RRR R/tDistutilsOptionErrortrangetlentreinitialize_commandtno_format_optionRt keep_temptrun_command(R#tcommandsRtitcmd_nametsub_cmd((s*/sys/lib/python/distutils/command/bdist.pytrun}s
(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)(s bdist_rpm(s bdist_rpmsRPM distribution(s
bdist_dumbsZIP file(s
bdist_dumbsgzip'ed tar file(s
bdist_dumbsbzip2'ed tar file(s
bdist_dumbscompressed tar file(s
bdist_dumbstar file(s
bdist_wininstsWindows executable installer(s
bdist_dumbsZIP file(t__name__t
__module__tdescriptionRRtuser_optionstboolean_optionsRthelp_optionsR6R-RR R$R1R=(((s*/sys/lib/python/distutils/command/bdist.pyRsB
(t__doc__t__revision__R)tstringttypestdistutils.coreRtdistutils.errorstdistutils.utilRRR(((s*/sys/lib/python/distutils/command/bdist.pys<module>s
|