Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/distutils/command/bdist.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@sqdZdZddlZddlmZddlmZddlmZm	Z	d�Z
defd	��YZdS(
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�(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.pytshow_formatssRc	Bs�eZdZd0ddde�fd2d3d4d5d6gZdgZdd1defgZd7Z	idd6dd6dd6Z
dddddd dd!gZid8d6d9d6d:d6d;d6d<d6d=d 6d>d6d?d!6Zd-�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]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-/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�|jtj
g|_Wq�tk
r�tddtj
�q�n|jdkr�|_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-/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(RRR
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	tuser_optionstboolean_optionsRthelp_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	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.