_d rdZddlZddlZddlmZddlmZmZddlm Z dZ Gdd e Z Gd d eZ y) zidistutils.command.bdist Implements the Distutils 'bdist' command (create a built [binary] distribution).N)Command)DistutilsPlatformErrorDistutilsOptionError) get_platformcddlm}g}tjD]-}|j d|zdtj|df/||}|j dy)zAPrint list of available formats (arguments to "--format" option).r) FancyGetoptformats=Nz'List of available distribution formats:) fancy_getoptr bdistformat_commandsappend print_help)r formatsformatpretty_printers E/usr/lib/python3/dist-packages/setuptools/_distutils/command/bdist.py show_formatsrsc*G''V V+T53H3H3PQR3STUV )NGHceZdZdZy) ListCompatc<tjdtdy)Nz4format_commands is now a dict. append is deprecated.r) stacklevel)warningswarnDeprecationWarning)selfitems rrzListCompat.appends F  rN)__name__ __module__ __qualname__rrrrrs rrc eZdZdZddddezfdddd d gZd gZd d defgZdZ dddZ e ddddddddZ e Z dZdZdZy )r z$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))r Nz/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]r(z help-formatsNz$lists available distribution formats) bdist_rpmgztarzip)posixnt)r+zRPM distribution) bdist_dumbzgzip'ed tar file)r0zbzip2'ed tar file)r0zxz'ed tar file)r0zcompressed tar file)r0ztar file)r0zZIP file)rpmr,bztarxztarztartarr-cfd|_d|_d|_d|_d|_d|_d|_y)Nr) bdist_base plat_namerdist_dir skip_buildgroupowner)rs rinitialize_optionszbdist.initialize_options^s3    rcB|j<|jrt|_n |jdj|_|jM|jdj }t jj|d|jz|_|jd|j$ |jt jg|_ |jd|_yy#t$rtdt jzwxYw)Nbuildzbdist.rz;don't know how to create built distributions on platform %sdist)r8r:rget_finalized_commandr7 build_baseospathjoinensure_string_listrdefault_formatnameKeyErrorrr9)rrBs rfinalize_optionszbdist.finalize_optionsgs >> !!-!%!;!;G!D!N!N ?? "33G<GGJ ggll:x$..7PQDO  * <<   $ 3 3BGG <=  == "DM !  ,%')ww/ s #C88&Dcg}|jD]$} |j|j|d&t t |jD]}||}|j|}||jvr|j||_ |dk(r"|j|_ |j|_ |||dzdvrd|_ |j|y#t$rt d|zwxYw)Nrzinvalid format '%s'r0r )rrrrIrrangelenreinitialize_commandno_format_optionrr<r; keep_temp run_command)rcommandsricmd_namesub_cmds rrunz bdist.runsll KF K 4 4V ras;  AI  y'Gy'r