Ë
    ˜šãjž>  ã                   ó|   — d Z ddlZddlZddlZddlmZ ddlmZ ddlm	Z	 ddl
­ ddlmZ ddlmZ  G d	„ d
e«      Zy)zzdistutils.command.bdist_wininst

Implements the Distutils 'bdist_wininst' command: create a windows installer
exe-program.é    N)ÚCommand)Úget_platform)Úremove_tree)Ú*)Úget_python_version)Úlogc                   ó¨   ‡ — e Zd ZdZdddd e«       z  fdddd	d
ddddddgZg d¢Zej                  dk7  Z	ˆ fd„Z
d„ Zd„ Zd„ Zd„ Zdd„Zd„ Zd„ Zˆ xZS )Úbdist_wininstz-create an executable installer for MS Windows)z
bdist-dir=Nz1temporary directory for creating the distributionz
plat-name=Úpz;platform name to embed in generated filenames (default: %s))ú	keep-tempÚkzPkeep the pseudo-installation tree around after creating the distribution archive)ztarget-version=Nz6require a specific python version on the target system)úno-target-compileÚcz/do not compile .py to .pyc on the target system)úno-target-optimizeÚoz;do not compile .py to .pyo (optimized) on the target system)z	dist-dir=Údz-directory to put final built distributions in)zbitmap=Úbz>bitmap to use for the installer instead of python-powered logo)ztitle=Útz?title to display on the installer background instead of default)ú
skip-buildNz2skip rebuilding everything (for testing/debugging))zinstall-script=NzUbasename of installation script to be run after installation or before deinstallation)zpre-install-script=Nz{Fully qualified filename of a script to be run before any files are installed.  This script need not be in the distribution)zuser-access-control=NzŠspecify Vista's UAC handling - 'none'/default=no handling, 'auto'=use UAC if target Python installed for all users, 'force'=always use UAC)r   r   r   r   Úwin32c                 óZ   •— t        ‰| �  |i |¤Ž t        j                  dt        d«       y )Nz^bdist_wininst command is deprecated since Python 3.8, use bdist_wheel (wheel packages) insteadé   )ÚsuperÚ__init__ÚwarningsÚwarnÚDeprecationWarning)ÚselfÚargsÚkwÚ	__class__s      €úv/var/www/html/python-recuperauto-other/env/lib/python3.12/site-packages/setuptools/_distutils/command/bdist_wininst.pyr   zbdist_wininst.__init__?   s,   ø€ Ü‰Ñ˜$Ð% "Ò%Ü�‰ð Aä(¨!õ	-ó    c                 óº   — d | _         d | _        d| _        d| _        d| _        d | _        d | _        d | _        d | _        d | _	        d | _
        d | _        d | _        y )Nr   )Ú	bdist_dirÚ	plat_nameÚ	keep_tempÚno_target_compileÚno_target_optimizeÚtarget_versionÚdist_dirÚbitmapÚtitleÚ
skip_buildÚinstall_scriptÚpre_install_scriptÚuser_access_control)r   s    r"   Úinitialize_optionsz bdist_wininst.initialize_optionsE   sc   € ØˆŒØˆŒØˆŒØ!"ˆÔØ"#ˆÔØ"ˆÔØˆŒØˆŒØˆŒ
ØˆŒØ"ˆÔØ"&ˆÔØ#'ˆÕ r#   c                 ó0  — | j                  dd«       | j                  €„| j                  r8| j                  r,| j                  j                  d«      }| j                  |_        | j                  d«      j                  }t        j                  j                  |d«      | _        | j                  sd| _        | j                  sU| j                  j                  «       r;t        «       }| j                  r| j                  |k7  rt        d|›d�«      ‚|| _        | j                  ddd«       | j                  ra| j                  j                   D ]0  }| j                  t        j                  j#                  |«      k(  sŒ0 y  t        d	| j                  z  «      ‚y )
NÚbdist)r.   r.   ÚwininstÚ ztarget version can only be z0, or the '--skip-build' option must be specified)r+   r+   )r&   r&   z(install_script '%s' not found in scripts)Úset_undefined_optionsr%   r.   r&   ÚdistributionÚget_command_objÚget_finalized_commandÚ
bdist_baseÚosÚpathÚjoinr*   Úhas_ext_modulesr   ÚDistutilsOptionErrorr/   ÚscriptsÚbasename)r   r4   r;   Úshort_versionÚscripts        r"   Úfinalize_optionszbdist_wininst.finalize_optionsU   sc  € Ø×"Ñ" 7Ð,HÔIà�>‰>Ð!Ø�Š 4§>¢>ð ×)Ñ)×9Ñ9¸'ÓB�Ø"&§.¡.�”à×3Ñ3°GÓ<×GÑGˆJÜŸW™WŸ\™\¨*°iÓ@ˆDŒNà×"Ò"Ø"$ˆDÔà�Š 4×#4Ñ#4×#DÑ#DÔ#FÜ.Ó0ˆMØ×"Ò" t×':Ñ':¸mÒ'KÝ*â5BðEóFð Fð #0ˆDÔà×"Ñ" 7Ø#;Ø#=ô	$ð
 ×ÒØ×+Ñ+×3Ñ3ò -�Ø×&Ñ&¬"¯'©'×*:Ñ*:¸6Ó*BÓBÙð-ô +Ø@Ø×+Ñ+ñ,ó-ð -ð r#   c                 óÌ  — t         j                  dk7  r?| j                  j                  «       s| j                  j	                  «       rt        d«      ‚| j                  s| j                  d«       | j                  dd¬«      }| j                  |_
        | j                  |_        d|_        | j                  |_        | j                  d«      }d|_        d|_        | j                  j                  «       rŒ| j                  }|s)| j                  sJ d	«       ‚d
t         j                   d d z  }d| j                  ›d|›�}| j#                  d«      }t$        j&                  j)                  |j*                  d|z   «      |_        dD ],  }|j/                  «       }|dk(  r|dz   }t1        |d|z   |«       Œ. t3        j4                  d| j                  «       |j7                  «        t         j&                  j9                  dt$        j&                  j)                  | j                  d«      «       |j;                  «        t         j&                  d= ddlm}  |«       }	| j                  jA                  «       }
| jC                  |	d| j                  ¬«      }| jE                  ||
| jF                  «       | j                  j                  «       rtI        «       }nd}| j                  jJ                  jM                  d|| jO                  |
«      f«       t3        jP                  d|«       t%        jR                  |«       | jT                  s"tW        | j                  | jX                  ¬«       y y )Nr   z^distribution contains extensions and/or C libraries; must be compiled on a Windows 32 platformÚbuildÚinstallé   )Úreinit_subcommandsr   Úinstall_libz Should have already checked thisz%d.%dr   ú.ú-Úlib)ÚpurelibÚplatlibÚheadersrA   ÚdatarQ   z/Include/$dist_nameÚinstall_zinstalling to %sÚPURELIB)ÚmktempÚzip)Úroot_dirÚanyr
   zremoving temporary file '%s')Údry_run)-ÚsysÚplatformr8   r?   Úhas_c_librariesÚDistutilsPlatformErrorr.   Úrun_commandÚreinitialize_commandr%   ÚrootÚwarn_dirr&   ÚcompileÚoptimizer*   Úversion_infor:   r<   r=   r>   Ú
build_baseÚ	build_libÚupperÚsetattrr   ÚinfoÚensure_finalizedÚinsertÚrunÚtempfilerU   Úget_fullnameÚmake_archiveÚ
create_exer,   r   Ú
dist_filesÚappendÚget_installer_filenameÚdebugÚremover'   r   rY   )r   rH   rK   r*   Úplat_specifierrG   ÚkeyÚvaluerU   Úarchive_basenameÚfullnameÚarcnameÚ	pyversions                r"   rl   zbdist_wininst.run{   sÒ  € Ü�L‰L˜GÒ#Ø×Ñ×.Ñ.Ô0Ø×Ñ×.Ñ.Ô0Ü(ð?ó@ð @ð �ŠØ×Ñ˜WÔ%à×+Ñ+¨IÈ!Ð+ÓLˆØ—~‘~ˆŒØ!Ÿ_™_ˆÔØˆÔØ ŸN™NˆÔà×/Ñ/°Ó>ˆàˆÔØ ˆÔà×Ñ×,Ñ,Ô.ð "×0Ñ0ˆNÙ!Ø—’ÐJÐ(JÓJ�Ø!(¬3×+;Ñ+;¸B¸QÐ+?Ñ!?�øØ)-¯«¹ÐHˆNØ×.Ñ.¨wÓ7ˆEÜ Ÿg™gŸl™l¨5×+;Ñ+;Ø+0°>Ñ+AóCˆEŒOð
 Hò 	ˆCØ—I‘I“KˆEØ�iÒØÐ 5Ñ5�Ü�GØ Ñ$Øõð		ô 	�‰Ð# T§^¡^Ô4Ø× Ñ Ô"ô 	�‰�‰˜œ2Ÿ7™7Ÿ<™<¨¯©¸	ÓBÔCà�‰Œä�H‰H�QˆKõ 	$Ù!›8ÐØ×$Ñ$×1Ñ1Ó3ˆØ×#Ñ#Ð$4°eØ-1¯^©^ð $ó =ˆð 	�‰˜ ¨4¯;©;Ô7Ø×Ñ×,Ñ,Ô.Ü*Ó,‰IàˆIØ×Ñ×$Ñ$×+Ñ+¨_¸iØ-1×-HÑ-HÈÓ-Rð-Tô 	Uô 	�	‰	Ð0°'Ô:Ü
�	‰	�'Ôà�~Š~Ü˜Ÿ™°·±Ö=ð r#   c                 ó.  — g }| j                   j                  }|j                  d«       |j                  xs ddz   }d„ }dD ]M  }t	        ||d«      }|sŒ|d|j                  «       ›d ||«      ›�z   }|j                  |›d ||«      ›�«       ŒO |j                  d	«       | j                  r|j                  d
| j                  z  «       |j                  d ||«      z  «       |j                  d| j                   z  «       |j                  d| j                   z  «       | j                  r|j                  d| j                  z  «       | j                  r|j                  d| j                  z  «       | j                  xs | j                   j                  «       }|j                  d ||«      z  «       dd l}dd l}	d|j                  |j                  «       «      ›d|	j                   ›�}
|j                  d|
z  «       dj#                  |«      S )Nz
[metadata]r6   ú
c                 ó&   — | j                  dd«      S )Nr~   z\n)Úreplace)Úss    r"   Úescapez)bdist_wininst.get_inidata.<locals>.escapeÙ   s   € Ø—9‘9˜T 5Ó)Ð)r#   )ÚauthorÚauthor_emailÚdescriptionÚ
maintainerÚmaintainer_emailÚnameÚurlÚversionz
    z: ú=z
[Setup]zinstall_script=%szinfo=%sztarget_compile=%dztarget_optimize=%dztarget_version=%szuser_access_control=%sztitle=%sr   zBuilt z with distutils-zbuild_info=%s)r8   Úmetadatarr   Úlong_descriptionÚgetattrÚ
capitalizer/   r(   r)   r*   r1   r-   rn   ÚtimeÚ	distutilsÚctimeÚ__version__r>   )r   ÚlinesrŒ   ri   r‚   rˆ   rR   r-   r�   r‘   Ú
build_infos              r"   Úget_inidatazbdist_wininst.get_inidataÌ   sÑ  € àˆØ×$Ñ$×-Ñ-ˆð 	�‰�\Ô"ð ×)Ñ)Ò/¨R°4Ñ7ˆò	*ðCò 	=ˆDä˜8 T¨2Ó.ˆDÚÙØ $§¡Õ 1±6¸$´<ð Añ B�à—‘ª©f°T¬lÐ;Õ<ð	=ð 	�‰�[Ô!Ø×ÒØ�L‰LÐ,¨t×/BÑ/BÑBÔCØ�‰�Y¡¨£Ñ-Ô.Ø�‰Ð(°×0FÑ0FÐ,FÑGÔHØ�‰Ð)°×1HÑ1HÐ-HÑIÔJØ×ÒØ�L‰LÐ,¨t×/BÑ/BÑBÔCØ×#Ò#Ø�L‰LÐ1°D×4LÑ4LÑLÔMà—
‘
Ò>˜d×/Ñ/×<Ñ<Ó>ˆØ�‰�Z¡&¨£-Ñ/Ô0ÛÜà—j‘j §¡£Õ-¨y×/DÒ/DðFˆ
à�‰�_ zÑ1Ô2Ø�y‰y˜ÓÐr#   c                 óì  — dd l }| j                  | j                  «       | j                  «       }| j	                  |«      }| j                  d|z  «       |r1t        |d«      5 }|j                  «       }d d d «       t        «      }	nd}	t        |d«      5 }
|
j                  | j                  «       «       |r|
j                  «       t        |t        «      r|j                  d«      }|dz   }| j                  rIt        | j                  dd¬	«      5 }|j                  «       j                  d«      }d d d «       |z   d
z   }n|dz   }|
j                  |«       |j                  ddt        |«      |	«      }|
j                  |«       t        |d«      5 }|
j                  |j                  «       «       d d d «       d d d «       y # 1 sw Y   �ŒSxY w# 1 sw Y   Œ xY w# 1 sw Y   Œ+xY w# 1 sw Y   y xY w)Nr   zcreating %sÚrbÚwbÚmbcsó    Úrzlatin-1)Úencodings   
 z<iiii{V4)ÚstructÚmkpathr+   r–   rs   ÚannounceÚopenÚreadÚlenÚwriteÚget_exe_bytesÚ
isinstanceÚstrÚencoder0   Úpack)r   r{   rz   r,   rž   ÚcfgdataÚinstaller_nameÚfÚ
bitmapdataÚ	bitmaplenÚfilerD   Úscript_dataÚheaders                 r"   rp   zbdist_wininst.create_exeú   sÌ  € Ûà�‰�D—M‘MÔ"à×"Ñ"Ó$ˆà×4Ñ4°XÓ>ˆØ�‰�m nÑ4Ô5áÜ�f˜dÓ#ð & qØŸV™V›X�
÷&ä˜J›‰IàˆIä�. $Ó'ð $	%¨4Ø�J‰J�t×)Ñ)Ó+Ô,ÙØ—
‘
˜:Ô&ô ˜'¤3Ô'Ø!Ÿ.™.¨Ó0�ð  ‘oˆGØ×&Ò&ô ˜$×1Ñ1°3Ø#,ô.ð BØ17Ø"(§+¡+£-×"6Ñ"6°yÓ"A�K÷Bð " KÑ/°'Ñ9‘ð " E™/�Ø�J‰J�wÔð —[‘[ Ø *Ü # G£Ø )ó"ˆFð
 �J‰J�vÔÜ�g˜tÓ$ð %¨Ø—
‘
˜1Ÿ6™6›8Ô$÷%÷G$	%ð $	%÷&ñ &ú÷*Bð Bú÷(%ð %ú÷G$	%ð $	%úsJ   Á#GÂA=G*Ä GÄ3A!G*Æ GÆ4G*ÇGÇG	ÇG*ÇG'	Ç#G*Ç*G3c           	      ó$  — | j                   rIt        j                  j                  | j                  |›d| j
                  ›d| j                   ›d�«      }|S t        j                  j                  | j                  |›d| j
                  ›d�«      }|S )NrL   z-pyú.exe)r*   r<   r=   r>   r+   r&   )r   rz   r«   s      r"   rs   z$bdist_wininst.get_installer_filename1  sr   € à×Òô  ŸW™WŸ\™\¨$¯-©-â,4°d·n³nÀd×FYÓFYð+[ó\ˆNð Ðô  ŸW™WŸ\™\¨$¯-©-Ú9AÀ4Ç>Ã>Ð*RóTˆNàÐr#   c                 óä  — t        «       }| j                  rl| j                  |k  r]| j                  dk  rd}nk| j                  dk(  rd}nY| j                  dk(  rd}nG| j                  dk  rd}n5| j                  dk  rd	}n#d
}n 	 ddlm} |j	                  d«      d   }|dz   }t        j                  j                  t        «      }| j                  dk7  r"| j                  d d dk(  r| j                  dd  }nd}t        j                  j                  |d|›|›d�«      }t        |d«      }	 |j                  «       |j                  «        S # t
        $ r d
}Y Œ¶w xY w# |j                  «        w xY w)Nz2.4z6.0z7.1z2.5z8.0z3.2z9.0z3.4z10.0z14.0r   )ÚCRT_ASSEMBLY_VERSIONrL   z.0r   é   Úwinr6   zwininst-r³   r˜   )r   r*   Úmsvcrtrµ   Ú	partitionÚImportErrorr<   r=   ÚdirnameÚ__file__r&   r>   r¡   r¢   Úclose)	r   Úcur_versionÚbvrµ   ÚmajorÚ	directoryÚsfixÚfilenamer¬   s	            r"   r¥   zbdist_wininst.get_exe_bytes>  sW  € ô )Ó*ˆð
 ×Ò 4×#6Ñ#6¸Ò#DØ×"Ñ" UÒ*Ø‘Ø×$Ñ$¨Ò-Ø‘Ø×$Ñ$¨Ò-Ø‘Ø×$Ñ$¨Ò-Ø‘Ø×$Ñ$¨Ò-Ø‘à‘ð	"Ý7ð -×6Ñ6°sÓ;¸AÑ>�Ø˜T‘\�ô —G‘G—O‘O¤HÓ-ˆ	ð �>‰>˜WÒ$¨¯©¸¸Ð);¸uÒ)DØ—>‘> ! "Ð%‰DàˆDä—7‘7—<‘<¡	ÁÂTÐ+JÓKˆÜ�˜4Ó ˆð	Ø—6‘6“8à�G‰G�Iøô9 ò à’ðûð8 �G‰G�Iús   ÂE Ä,E ÅEÅEÅE/)N)Ú__name__Ú
__module__Ú__qualname__r…   r   Úuser_optionsÚboolean_optionsrZ   r[   Ú_unsupportedr   r2   rE   rl   r–   rp   rs   r¥   Ú__classcell__)r!   s   @r"   r
   r
      s¯   ø„ àA€KðJà! 3ð%Ù'3£~ñ6ð7ð:ð.ðHð-ðFðWðXðKð>ð%ð:ð?#€LòJ%€Oð —L‘L GÑ+€Lô-ò(ò $-òLO>òb, ó\5%ònö;r#   r
   )Ú__doc__r<   rZ   r   Údistutils.corer   Údistutils.utilr   Údistutils.dir_utilr   Údistutils.errorsÚdistutils.sysconfigr   r‘   r   r
   © r#   r"   ú<module>rÒ      s5   ðñó
 
Û 
Û Ý "Ý 'Ý *Ü Ý 2Ý ôi�Gõ ir#   