J!UW R d dl Z d dlmZ d dlT d dlmZ d Z G d de ZdS ) N)Command)*)get_platformc ddl m} g }t j D ]3}| d|z d t j | d f 4 | | }| d d S )Nr )FancyGetoptformats= z'List of available distribution formats:)distutils.fancy_getoptr bdistformat_commandsappendformat_command print_help)r formatsformatpretty_printers >/opt/alt/python311/lib64/python3.11/distutils/command/bdist.pyshow_formatsr s 222222G' : : V+T,V4Q79 : : : : [))NGHHHHH c e Zd ZdZdddd e z fdddd d gZdgZdd defgZdZ dddZ g dZddddddddZd Z d Zd Zd S )r z$create a built (binary) distribution)zbdist-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 zhelp-formatsNz$lists available distribution formats) bdist_rpmgztarzip)posixnt)rpmr bztarxztarztartarr )r zRPM distribution) bdist_dumbzgzip'ed tar file)r' zbzip2'ed tar file)r' zxz'ed tar file)r' zcompressed tar file)r' ztar file)r' zZIP filec h d | _ d | _ d | _ d | _ d| _ d | _ d | _ d S )Nr ) bdist_base plat_namer dist_dir skip_buildgroupowner)selfs r initialize_optionszbdist.initialize_optionsL s7 r c | j :| j rt | _ n| d j | _ | j G| d j }t j |d| j z | _ | d | j I | j t j g| _ n*# t $ r t dt j z w xY w| j d| _ d S d S )Nbuildzbdist.r z;don't know how to create built distributions on platform %sdist)r* r, r get_finalized_commandr) build_baseospathjoinensure_string_listr default_formatnameKeyErrorDistutilsPlatformErrorr+ )r/ r5 s r finalize_optionszbdist.finalize_optionsU s >! O!-!%!;!;G!D!D!N ?"33G<<GJ gll:+3dn+DF FDO ***< 2 $ 3BG <= 2 2 2,')+12 2 2 2 = "DMMM ! s -C 'C2c g }| j D ]I} | | j | d *# t $ r t d|z w xY wt t | j D ]}|| }| | }|| j vr| j | |_ |dk r| j |_ | j |_ |||dz d v rd|_ | | d S )Nr zinvalid format '%s'r' r )r r r r<