MINI MINI MANI MO

Path : /usr/lib64/python3.6/distutils/command/__pycache__/
File Upload :
Current File : //usr/lib64/python3.6/distutils/command/__pycache__/bdist.cpython-36.pyc

3


 \ºã@sHdZddlZddlmZddlTddlmZdd„ZGdd	„d	eƒZdS)
zidistutils.command.bdist

Implements the Distutils 'bdist' command (create a built [binary]
distribution).éN)ÚCommand)Ú*)Úget_platformcCsTddlm}g}x,tjD]"}|jd|dtj|dfƒqW||ƒ}|jdƒdS)zFPrint list of available formats (arguments to "--format" option).
    r)ÚFancyGetoptzformats=Néz'List of available distribution formats:)Zdistutils.fancy_getoptrÚbdistÚformat_commandsÚappendÚformat_commandZ
print_help)rÚformatsÚformatZpretty_printer©r
ú//usr/lib64/python3.6/distutils/command/bdist.pyÚshow_formatssrc
@s–eZdZdZd6dddeƒfd7d8d9d:d;gZdgZdd	defgZd<Z	dddœZ
dddddd d!dd"g	Zd=d>d?d@dAdBdCdDdEd/œ	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ÚgztarÚzip)ÚposixÚntÚrpmÚbztarÚxztarÚztarÚtarÚwininstÚmsiú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 Installer)	r&r"r'r(r)r*r+r#r,cCs.d|_d|_d|_d|_d|_d|_d|_dS)Nr)Ú
bdist_baseÚ	plat_namerÚdist_dirÚ
skip_buildÚgroupÚowner)Úselfr
r
rÚinitialize_optionsQszbdist.initialize_optionscCs´|jdkr(|jrtƒ|_n|jdƒj|_|jdkrT|jdƒj}tjj|d|jƒ|_|j	dƒ|j
dkr y|jtjg|_
Wn"t
k
ržtdtjƒ‚YnX|jdkr°d|_dS)NZbuildzbdist.rz;don't know how to create built distributions on platform %sZdist)r:r<rZget_finalized_commandr9Ú
build_baseÚosÚpathÚjoinZensure_string_listrÚdefault_formatÚnameÚKeyErrorZDistutilsPlatformErrorr;)r?rAr
r
rÚfinalize_optionsZs$





zbdist.finalize_optionscCsÎg}xH|jD]>}y|j|j|dƒWqtk
rHtd|ƒ‚YqXqWxztt|jƒƒD]h}||}|j|ƒ}||jkrŠ|j||_	|dkr¢|j
|_
|j|_|||dd…kr¼d|_|j
|ƒq^WdS)Nrzinvalid format '%s'r.r)rr	r
rGZDistutilsOptionErrorÚrangeÚlenZreinitialize_commandÚno_format_optionrr>r=Z	keep_tempZrun_command)r?ZcommandsrÚiZcmd_nameZsub_cmdr
r
rÚrunvs"

z	bdist.run)rrr)rNr)rrr)rNr)rrr)rrr )r!)r!r-)r.r/)r.r0)r.r1)r.r2)r.r3)r4r5)r.r6)r7r8)Ú__name__Ú
__module__Ú__qualname__ZdescriptionrZuser_optionsZboolean_optionsrZhelp_optionsrKrErr
r@rHrMr
r
r
rrsJ

	r)	Ú__doc__rBZdistutils.corerZdistutils.errorsZdistutils.utilrrrr
r
r
rÚ<module>s

OHA YOOOO