U ¡ê,aºã@sHdZddlZddlmZddlTddlmZdd„ZGdd „d eƒZdS) zidistutils.command.bdist Implements the Distutils 'bdist' command (create a built [binary] distribution).éN)ÚCommand)Ú*)Ú get_platformcCsPddlm}g}tjD]"}| d|dtj|df¡q||ƒ}| d¡dS)zFPrint list of available formats (arguments to "--format" option). r)Ú FancyGetoptúformats=Néz'List of available distribution formats:)Zdistutils.fancy_getoptrÚbdistÚformat_commandsÚappendÚformat_commandZ print_help)rÚformatsÚformatZpretty_printer©rú}z| |j|d¡Wq tk rFtd|ƒ‚Yq Xq tt|jƒƒD]h}||}| |¡}||jkr„|j||_ |dkrœ|j |_ |j |_ |||dd…kr¶d|_ |  |¡qXdS)Nrzinvalid format '%s'r#r)r r r r2ZDistutilsOptionErrorÚrangeÚlenZreinitialize_commandÚno_format_optionr r)r(Z keep_tempZ run_command)r*Zcommandsr ÚiZcmd_nameZsub_cmdrrrÚrunvs"    z bdist.run)Ú__name__Ú __module__Ú __qualname__Z descriptionrZ user_optionsZboolean_optionsrZ help_optionsr6r0r r r+r3r8rrrrrsRÿÿñÿÿÿ ÿ÷  r) Ú__doc__r-Zdistutils.corerZdistutils.errorsZdistutils.utilrrrrrrrÚs