B L@;“” ¯ã@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]"}| d|dtj|df¡qW||ƒ}| d¡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 ú}y| |j|d¡Wq tk rHtd|ƒ‚Yq Xq Wxztt|jƒƒD]h}||}| |¡}||jkrŠ|j||_ |dkr¢|j |_ |j |_ |||dd…kr¼d|_ |  |¡q^WdS)Nrzinvalid format '%s'r!r)r r r r0ZDistutilsOptionErrorÚrangeÚlenZreinitialize_commandÚno_format_optionr r'r&Z keep_tempZ run_command)r(Zcommandsr ÚiZcmd_nameZsub_cmdr r rÚrunvs"    z bdist.run)Ú__name__Ú __module__Ú __qualname__Z descriptionrZ user_optionsZboolean_optionsrZ help_optionsr4r.rr r)r1r6r r r rrs<    r) Ú__doc__r+Zdistutils.corerZdistutils.errorsZdistutils.utilrrrr r r rÚs