Viewing File: /opt/alt/python35/lib64/python3.5/distutils/command/__pycache__/bdist.cpython-35.opt-2.pyc



й¼]ºã@s\ddlZddlmZddlTddlmZdd„ZGdd„deƒZdS)	éN)ÚCommand)Ú*)Úget_platformcCslddlm}g}x6tjD]+}|jd|dtj|dfƒq W||ƒ}|jdƒdS)Nr)ÚFancyGetoptzformats=éz'List of available distribution formats:)Zdistutils.fancy_getoptrÚbdistÚformat_commandsÚappendÚformat_commandÚ
print_help)rÚformatsÚformatZpretty_printer©rú*/opt/alt/python35/lib64/python3.5/bdist.pyÚshow_formatssrc@søeZdZdZd6dddeƒfd7d8d9d:d;gZdgZdd	defgZd<Z	ddddiZ
ddddd d!d"dd#g	Zdd=dd>dd?dd@d dAd!dBd"dCddDd#dEi	Zd0d1„Z
d2d3„Zd4d5„Zd	S)Frz$create a built (binary) distributionúbdist-base=Úbú4temporary directory for creating built distributionsz
plat-name=Úpz;platform name to embed in generated filenames (default: %s)úformats=Nú/formats for distribution (comma-separated list)ú	dist-dir=Údú=directory to put final built distributions in [default: dist]ú
skip-buildú2skip rebuilding everything (for testing/debugging)úowner=Úuú@Owner name used when creating a tar file [default: current user]úgroup=ÚgúAGroup name used when creating a tar file [default: current group]zhelp-formatsz$lists available distribution formatsÚ	bdist_rpmÚposixÚgztarÚntÚzipZrpmÚbztarÚxztarZztarÚtarZwininstZmsiúRPM distributionÚ
bdist_dumbúgzip'ed tar fileúbzip2'ed tar fileúxz'ed tar fileúcompressed tar fileútar fileÚ
bdist_wininstúWindows executable installerúZIP fileÚ	bdist_msiúMicrosoft InstallercCsCd|_d|_d|_d|_d|_d|_d|_dS)Nr)Ú
bdist_baseÚ	plat_namerÚdist_dirÚ
skip_buildÚgroupÚowner)ÚselfrrrÚinitialize_optionsQs						zbdist.initialize_optionscCsö|jdkr<|jr'tƒ|_n|jdƒj|_|jdkr||jdƒj}tjj|d|jƒ|_|j	dƒ|j
dkrÚy|jtjg|_
Wn%t
k
rÙtdtjƒ‚YnX|jdkròd|_dS)NZbuildzbdist.rz;don't know how to create built distributions on platform %sZdist)r7r9rZget_finalized_commandr6Ú
build_baseÚosÚpathÚjoinZensure_string_listrÚdefault_formatÚnameÚKeyErrorZDistutilsPlatformErrorr8)r<r>rrrÚfinalize_optionsZs$	

zbdist.finalize_optionscCsg}xR|jD]G}y|j|j|dƒWqtk
rVtd|ƒ‚YqXqWx©tt|jƒƒD]’}||}|j|ƒ}||jkr¯|j||_	|dkrÓ|j
|_
|j|_|||dd…kröd|_|j
|ƒqqWdS)Nrzinvalid format '%s'r+r)rr	r
rDZDistutilsOptionErrorÚrangeÚlenZreinitialize_commandÚno_format_optionr
r;r:Z	keep_tempZrun_command)r<Úcommandsr
ÚiZcmd_nameZsub_cmdrrrÚrunvs"

	z	bdist.run)rrr)rNr)rrr)rNr)rrr)rr r!)r")r"r*)r+r,)r+r-)r+r.)r+r/)r+r0)r1r2)r+r3)r4r5)Ú__name__Ú
__module__Ú__qualname__ÚdescriptionrZuser_optionsZboolean_optionsrZhelp_optionsrHrBrr
r=rErKrrrrrsJ
			r)r?Zdistutils.corerZdistutils.errorsZdistutils.utilrrrrrrrÚ<module>s


Back to Directory File Manager