Ë
    
_ßd   ã                   ór   — d Z ddlZddlZddlmZ ddlmZmZ ddlm	Z	 d„ Z
 G d„ d	e«      Z G d
„ de«      Zy)zidistutils.command.bdist

Implements the Distutils 'bdist' command (create a built [binary]
distribution).é    Né   )ÚCommand)ÚDistutilsPlatformErrorÚDistutilsOptionError)Úget_platformc                  óÆ   — ddl m}  g }t        j                  D ]-  }|j	                  d|z   dt        j                  |   d   f«       Œ/  | |«      }|j                  d«       y)zAPrint list of available formats (arguments to "--format" option).r   )ÚFancyGetoptúformats=Né   z'List of available distribution formats:)Úfancy_getoptr	   ÚbdistÚformat_commandsÚappendÚ
print_help)r	   ÚformatsÚformatÚpretty_printers       úE/usr/lib/python3/dist-packages/setuptools/_distutils/command/bdist.pyÚshow_formatsr      sc   € å*à€GÜ×'Ñ'ò VˆØ�‰˜
 VÑ+¨T´5×3HÑ3HÈÑ3PÐQRÑ3SÐTÕUðVá  Ó)€NØ×ÑÐGÕHó    c                   ó   — e Zd Zd„ Zy)Ú
ListCompatc                 ó<   — t        j                  dt        d¬«       y )Nz4format_commands is now a dict. append is deprecated.r   )Ú
stacklevel)ÚwarningsÚwarnÚDeprecationWarning)ÚselfÚitems     r   r   zListCompat.append   s   € Ü�‰ØFÜØö	
r   N)Ú__name__Ú
__module__Ú__qualname__r   © r   r   r   r      s   „ ó
r   r   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
 eddddddddœ«      ZeZd„ Zd„ Zd„ Zy)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)r+   zRPM distribution)Ú
bdist_dumbzgzip'ed tar file)r0   zbzip2'ed tar file)r0   zxz'ed tar file)r0   zcompressed tar file)r0   ztar file)r0   zZIP file)Úrpmr,   ÚbztarÚxztarÚztarÚtarr-   c                 óf   — d | _         d | _        d | _        d | _        d| _        d | _        d | _        y )Nr   )Ú
bdist_baseÚ	plat_namer   Údist_dirÚ
skip_buildÚgroupÚowner)r   s    r   Úinitialize_optionszbdist.initialize_options^   s3   € ØˆŒØˆŒØˆŒØˆŒØˆŒØˆŒ
Øˆ�
r   c                 óB  — | j                   €<| j                  rt        «       | _         n | j                  d«      j                   | _         | j                  €M| j                  d«      j
                  }t        j                  j                  |d| j                   z   «      | _        | j                  d«       | j                  €$	 | j                  t        j                     g| _
        | j                  €d| _        y y # t        $ r t        dt        j                  z  «      ‚w xY w)NÚbuildzbdist.r   z;don't know how to create built distributions on platform %sÚdist)r8   r:   r   Úget_finalized_commandr7   Ú
build_baseÚosÚpathÚjoinÚensure_string_listr   Údefault_formatÚnameÚKeyErrorr   r9   )r   rB   s     r   Úfinalize_optionszbdist.finalize_optionsg   sò   € à�>‰>Ð!Ø�ŠÜ!-£�•à!%×!;Ñ!;¸GÓ!D×!NÑ!N�”ð
 �?‰?Ð"Ø×3Ñ3°GÓ<×GÑGˆJÜ Ÿg™gŸl™l¨:°xÀ$Ç.Á.Ñ7PÓQˆDŒOà×Ñ 	Ô*Ø�<‰<ÐðØ $× 3Ñ 3´B·G±GÑ <Ð=�”ð �=‰=Ð Ø"ˆD�Mð !øô ò Ü,ð%Ü')§w¡wñ/óð ðús   Ã #C8 Ã8&Dc                 óì  — g }| j                   D ]$  }	 |j                  | j                  |   d   «       Œ& t        t        | j                   «      «      D ]ƒ  }||   }| j                  |«      }|| j                  vr| j                   |   |_	        |dk(  r"| j                  |_
        | j                  |_        |||dz   d  v rd|_        | j                  |«       Œ… y # t        $ r t	        d|z  «      ‚w xY w)Nr   zinvalid format '%s'r0   r   )r   r   r   rI   r   ÚrangeÚlenÚreinitialize_commandÚno_format_optionr   r<   r;   Ú	keep_tempÚrun_command)r   Úcommandsr   ÚiÚcmd_nameÚsub_cmds         r   Úrunz	bdist.runƒ   s  € àˆØ—l‘lò 	KˆFðKØ—‘ × 4Ñ 4°VÑ <¸QÑ ?Õ@ð	Kô ”s˜4Ÿ<™<Ó(Ó)ò 	'ˆAØ ‘{ˆHØ×/Ñ/°Ó9ˆGØ˜t×4Ñ4Ñ4Ø!%§¡¨a¡�”ð ˜<Ò'Ø $§
¡
�”Ø $§
¡
�”ð ˜8 A¨¡E GÐ,Ñ,Ø$%�Ô!Ø×Ñ˜XÕ&ñ	'øô	 ò KÜ*Ð+@À6Ñ+IÓJÐJðKús   “!CÃC3)r    r!   r"   Údescriptionr   Úuser_optionsÚboolean_optionsr   Úhelp_optionsrO   rG   r   r   Úformat_commandr=   rJ   rV   r#   r   r   r   r   #   s¸   „ Ø8€Kð 	UàØðÙ*›nñ-ð	
ð 	Nð	
ð
 	Sð	
ð
	
ð)€Lð6 $�n€Oð 
˜ÐEÀ|ÐTð€Lð
 &Ðð  '¨eÑ4€Nñ !à4Ø7Ø8Ø5Ø9Ø-Ø-ñ	
ó
€Oð %€Nòò#ó8'r   r   )Ú__doc__rC   r   Úcorer   Úerrorsr   r   Úutilr   r   Údictr   r   r#   r   r   ú<module>ra      s;   ðñó
 
Û å ß AÝ òIô
�ô 
ôy'ˆGõ y'r   