o ?Og9@sF ddlZddlmZddlTddlmZddZGdddeZdS) N)Command)*) get_platformcCsR ddlm}g}tjD]}|d|dtj|dfq ||}|ddS)Nr) FancyGetoptformats=z'List of available distribution formats:)Zdistutils.fancy_getoptrbdistformat_commandsappendformat_commandZ print_help)rformatsformatZpretty_printerr>/opt/alt/python310/lib64/python3.10/distutils/command/bdist.py show_formats s    rc @seZdZdZddddefdddd d gZd gZd d defgZdZ dddZ gdZ dddddddddZ ddZ ddZd d!Zd S)"rz$create a built (binary) distribution)z bdist-base=bz4temporary directory for creating built distributionsz plat-name=pz;platform name to embed in generated filenames (default: %s))rNz/formats for distribution (comma-separated list))z dist-dir=dz=directory to put final built distributions in [default: dist]) skip-buildNz2skip rebuilding everything (for testing/debugging))zowner=uz@Owner name used when creating a tar file [default: current user])zgroup=gzAGroup name used when creating a tar file [default: current group]rz help-formatsNz$lists available distribution formats) bdist_rpmgztarzip)posixnt)ZrpmrZbztarZxztarZztarZtarrZmsi)rzRPM distribution) bdist_dumbzgzip'ed tar file)rzbzip2'ed tar file)rzxz'ed tar file)rzcompressed tar file)rztar file)rzZIP file)Z bdist_msizMicrosoft InstallercCs.d|_d|_d|_d|_d|_d|_d|_dS)Nr) bdist_base plat_namer dist_dir skip_buildgroupowner)selfrrrinitialize_optionsOs zbdist.initialize_optionscCs|jdur|jr t|_n|dj|_|jdur*|dj}tj|d|j|_| d|j durMz |j tj g|_ Wnt yLtdtj w|jdurWd|_dSdS)NZbuildzbdist.r z;don't know how to create built distributions on platform %sZdist)rr rZget_finalized_commandr build_baseospathjoinZensure_string_listr default_formatnameKeyErrorZDistutilsPlatformErrorr)r#r%rrrfinalize_optionsXs.         zbdist.finalize_optionsc Csg}|jD]}z ||j|dWqty td|wtt|jD]4}||}||}||jvr>|j||_ |dkrJ|j |_ |j |_ |||ddvrWd|_ | |q(dS)Nrzinvalid format '%s'rr)r r r r+ZDistutilsOptionErrorrangelenZreinitialize_commandno_format_optionr r"r!Z keep_tempZ run_command)r#Zcommandsr iZcmd_nameZsub_cmdrrrrunts&       z bdist.run)__name__ __module__ __qualname__ descriptionrZ user_optionsZboolean_optionsrZ help_optionsr/r)r r r$r,r1rrrrrsH  r)r&Zdistutils.corerZdistutils.errorsZdistutils.utilrrrrrrrs