§
    ZQdÕ  ã                   óT   — d Z ddlZddlmZ ddlT ddlmZ d„ Z G d„ de¦  «        ZdS )	zidistutils.command.bdist

Implements the Distutils 'bdist' command (create a built [binary]
distribution).é    N)ÚCommand)Ú*)Úget_platformc                  óÖ   — ddl m}  g }t          j        D ]3}|                     d|z   dt          j        |         d         f¦  «         Œ4 | |¦  «        }|                     d¦  «         dS )zFPrint list of available formats (arguments to "--format" option).
    r   )ÚFancyGetoptúformats=Né   z'List of available distribution formats:)Údistutils.fancy_getoptr   ÚbdistÚformat_commandsÚappendÚformat_commandÚ
print_help)r   ÚformatsÚformatÚpretty_printers       ú./usr/lib/python3.11/distutils/command/bdist.pyÚshow_formatsr      s�   € ð 3Ð2Ð2Ð2Ð2Ð2Ø€GÝÔ'ð :ð :ˆØ�Š˜
 VÑ+¨TÝÔ,¨VÔ4°QÔ7ð9ñ 	:ô 	:ð 	:ð 	:à �[ Ñ)Ô)€NØ×ÒÐGÑHÔHÐHÐHÐHó    c                   ó�   — e Zd ZdZdddd e¦   «         z  fdddd	d
gZdgZdddefgZdZ	dddœZ
g d¢ZddddddddœZd„ Zd„ Zd„ ZdS )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))zowner=Úuz@Owner name used when creating a tar file [default: current user])zgroup=ÚgzAGroup name used when creating a tar file [default: current group]r   zhelp-formatsNz$lists available distribution formats)Ú	bdist_rpmÚgztarÚzip)ÚposixÚnt)Úrpmr   ÚbztarÚxztarÚztarÚtarr   )r   zRPM distribution)Ú
bdist_dumbzgzip'ed tar file)r'   zbzip2'ed tar file)r'   zxz'ed tar file)r'   zcompressed tar file)r'   ztar file)r'   zZIP filec                 óh   — d | _         d | _        d | _        d | _        d| _        d | _        d | _        d S )Nr   )Ú
bdist_baseÚ	plat_namer   Údist_dirÚ
skip_buildÚgroupÚowner)Úselfs    r   Úinitialize_optionszbdist.initialize_optionsL   s7   € ØˆŒØˆŒØˆŒØˆŒØˆŒØˆŒ
ØˆŒ
ˆ
ˆ
r   c                 ó  — | j         €:| j        rt          ¦   «         | _         n|                      d¦  «        j         | _         | j        €G|                      d¦  «        j        }t          j                             |d| j         z   ¦  «        | _        |  	                    d¦  «         | j
        €I	 | j        t          j                 g| _
        n*# t          $ r t          dt          j        z  ¦  «        ‚w xY w| j        €	d| _        d S d S )NÚbuildzbdist.r   z;don't know how to create built distributions on platform %sÚdist)r*   r,   r   Úget_finalized_commandr)   Ú
build_baseÚosÚpathÚjoinÚensure_string_listr   Údefault_formatÚnameÚKeyErrorÚDistutilsPlatformErrorr+   )r/   r5   s     r   Úfinalize_optionszbdist.finalize_optionsU   s  € àŒ>Ð!ØŒð OÝ!-¡¤�”�à!%×!;Ò!;¸GÑ!DÔ!DÔ!N�”ð
 Œ?Ð"Ø×3Ò3°GÑ<Ô<ÔGˆJÝ œgŸlšl¨:Ø+3°d´nÑ+DñFô FˆDŒOð 	×Ò 	Ñ*Ô*Ð*ØŒ<Ðð2Ø $Ô 3µB´GÔ <Ð=�”�øÝð 2ð 2ð 2Ý,ð'Ý)+¬ñ1ñ2ô 2ð 2ð2øøøð
 Œ=Ð Ø"ˆDŒMˆMˆMð !Ð s   Â-C Ã'C2c                 óö  — g }| j         D ]I}	 |                     | j        |         d         ¦  «         Œ*# t          $ r t	          d|z  ¦  «        ‚w xY wt          t          | j         ¦  «        ¦  «        D ]ƒ}||         }|                      |¦  «        }|| j        vr| j         |         |_	        |dk    r| j
        |_
        | j        |_        |||dz   d …         v rd|_        |                      |¦  «         Œ„d S )Nr   zinvalid format '%s'r'   r	   )r   r   r   r<   ÚDistutilsOptionErrorÚrangeÚlenÚreinitialize_commandÚno_format_optionr   r.   r-   Ú	keep_tempÚrun_command)r/   Úcommandsr   ÚiÚcmd_nameÚsub_cmds         r   Úrunz	bdist.runq   s0  € àˆØ”lð 	Kð 	KˆFðKØ—’ Ô 3°FÔ ;¸AÔ >Ñ?Ô?Ð?Ð?øÝð Kð Kð KÝ*Ð+@À6Ñ+IÑJÔJÐJðKøøøõ •s˜4œ<Ñ(Ô(Ñ)Ô)ð 	'ð 	'ˆAØ ”{ˆHØ×/Ò/°Ñ9Ô9ˆGØ˜tÔ4Ð4Ð4Ø!%¤¨a¤�”ð ˜<Ò'Ð'Ø $¤
�”Ø $¤
�”ð ˜8 A a¡C D Dœ>Ð)Ð)Ø$%�Ô!Ø×Ò˜XÑ&Ô&Ð&Ð&ð	'ð 	's	   �&4´A)Ú__name__Ú
__module__Ú__qualname__Údescriptionr   Úuser_optionsÚboolean_optionsr   Úhelp_optionsrD   r:   r   r   r0   r>   rK   © r   r   r   r      sú   € € € € € à8€KðMà! 3ð%Ø'3 |¡~¤~ñ6ð7ðHð(ðKð1ð2ð€Lð( $�n€Oð 
˜Ø	/°ð	?ð
€Lð &Ðð  'Ø!ð#ð #€Nð OÐNÐN€Oð  BØAØBØ?ØDØ9Ø9ðð €Nðð ð ð#ð #ð #ð8'ð 'ð 'ð 'ð 'r   r   )	Ú__doc__r6   Údistutils.corer   Údistutils.errorsÚdistutils.utilr   r   r   rS   r   r   ú<module>rX      sš   ððð ð
 
€	€	€	Ø "Ð "Ð "Ð "Ð "Ð "Ø Ð Ð Ð Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'ð	Ið 	Ið 	Iðr'ð r'ð r'ð r'ð r'ˆGñ r'ô r'ð r'ð r'ð r'r   