o
    Ëý°jk  ã                   @   s  d Z ddlZddlZddlZddlZddlZddlZddlZddl	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mZmZ ddlmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z% ddl&m'Z'm(Z( ddl)m*Z* dd	l+m,Z, dd
l-m.Z. ddl/m0Z0 ddl1m2Z2 ddl3m4Z4m5Z5m6Z6 ddl7m8Z8m9Z9 ddl:m;Z;m<Z< ddl=m>Z>m?Z? ddl@mAZAmBZBmCZCmDZD ddlEmFZFmGZGmHZHmIZI ddlJmKZK erÞddlmLZL G dd„ deLƒZMe NeO¡ZPedeQƒZRe#eReQe$eSeQf f ZTd[deQdeSde#eQeQf fdd„ZUdeQdeeQef fdd „ZVdeQdeWfd!d"„ZXd#edeWfd$d%„ZYd&e4de#eeQeQf eeQeQf f fd'd(„ZZd)e!eQ de eQ fd*d+„Z[d,eeT dee#eQeQeQf  fd-d.„Z\d/eRdeQfd0d1„Z]d\deQd2e eQ deRfd3d4„Z^d5eeeQ  d6eeReRf d7e"eR d8eeQ d9eQdeeT fd:d;„Z_d<eeQeQf deeQ fd=d>„Z`G d?d@„ d@ƒZaG dAdB„ dBƒZbG dCdD„ dDe0ƒZcdEeQddfdFdG„ZdG dHdI„ dIe*ƒZe	J	J		Kd]dLeQdMe'dNeQdOe<dPeWdQeWdRe e9 dSeWddfdTdU„ZfejgdVeQded fdWdX„ƒZh	J	J		Kd]dLeQdNeQdOe<dVeQdPeWdQeWdRe e9 dSeWddfdYdZ„ZidS )^zGSupport for installing and building the "wheel" binary package format.
é    N)Úurlsafe_b64encode)ÚMessage)ÚchainÚfilterfalseÚstarmap)ÚIOÚTYPE_CHECKINGÚAnyÚBinaryIOÚCallableÚDictÚIterableÚIteratorÚListÚNewTypeÚOptionalÚSequenceÚSetÚTupleÚUnionÚcast)ÚZipFileÚZipInfo)ÚScriptMaker)Úget_export_entry)Úcanonicalize_name)ÚInstallationError)Úget_major_minor_version)ÚBaseDistributionÚFilesystemWheelÚget_wheel_distribution)ÚDIRECT_URL_METADATA_NAMEÚ	DirectUrl)ÚSCHEME_KEYSÚScheme)Úadjacent_tmp_fileÚreplace)Úcaptured_stdoutÚ
ensure_dirÚ	hash_fileÚ	partition)Úcurrent_umaskÚis_within_directoryÚ2set_extracted_file_to_default_mode_plus_executableÚzip_item_is_executable)Úparse_wheel)ÚProtocolc                   @   s0   e Zd ZU ded< eed< eed< d	dd„ZdS )
ÚFileÚ
RecordPathÚsrc_record_pathÚ	dest_pathÚchangedÚreturnNc                 C   s   d S ©N© ©Úselfr8   r8   ú™/root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/pip/_internal/operations/install/wheel.pyÚsaveE   ó   z	File.save©r6   N)Ú__name__Ú
__module__Ú__qualname__Ú__annotations__ÚstrÚboolr<   r8   r8   r8   r;   r1   @   s
   
 r1   r2   é   ÚpathÚ	blocksizer6   c                 C   s6   t | |ƒ\}}dt| ¡ ƒ d¡ d¡ }|t|ƒfS )z?Return (encoded_digest, length) for path using hashlib.sha256()zsha256=Úlatin1ú=)r)   r   ÚdigestÚdecodeÚrstriprC   )rF   rG   ÚhÚlengthrJ   r8   r8   r;   ÚrehashO   s   rO   Úmodec                 C   s   | dddœS )zPReturn keyword arguments to properly open a CSV file
    in the given mode.
    Ú úutf-8)rP   ÚnewlineÚencodingr8   )rP   r8   r8   r;   Úcsv_io_kwargsV   s   rU   c                 C   sÎ   t j | ¡sJ ‚t| dƒ�0}| ¡ }| d¡s 	 W d  ƒ dS tj t 	¡ ¡}d| t j
 d¡ }| ¡ }W d  ƒ n1 s@w   Y  t| dƒ�}| |¡ | |¡ W d  ƒ dS 1 s`w   Y  dS )	zQReplace #!python with #!/path/to/python
    Return True if file was changed.
    Úrbs   #!pythonNFs   #!ÚasciiÚwbT)ÚosrF   ÚisfileÚopenÚreadlineÚ
startswithÚsysÚ
executableÚencodeÚgetfilesystemencodingÚlinesepÚreadÚwrite)rF   ÚscriptÚ	firstlineÚexenameÚrestr8   r8   r;   Ú
fix_script]   s"   
ý
ú

þýri   Úmetadatac                 C   s   |   dd¡ ¡ dkS )NzRoot-Is-PurelibrQ   Útrue)ÚgetÚlower)rj   r8   r8   r;   Úwheel_root_is_purelibq   s   rn   Údistc                 C   sL   i }i }|   ¡ D ]}|jdkr|j||j< q|jdkr!|j||j< q||fS )NÚconsole_scriptsÚgui_scripts)Úiter_entry_pointsÚgroupÚvalueÚname)ro   rp   rq   Úentry_pointr8   r8   r;   Úget_entrypointsu   s   

€rw   Úscriptsc                    s~  | sdS t  t¡}| D ]}tj |¡}tj |¡}||  |¡ qdd„ tj 	dd¡ 
tj¡D ƒ‰ ˆ  tj tj tj¡¡¡ ‡ fdd„| ¡ D ƒ}|sNdS g }| ¡ D ]1\}}t|ƒ}t|ƒdkrjd	 |d
 ¡}	nd d |dd… ¡d |d  ¡}	| d |	|¡¡ qTd}
t|ƒdkr—| |
 d¡¡ n| |
 d¡¡ tdd„ tj 	dd¡ 
tj¡D ƒƒ}|rºd}| |¡ d |¡S )z�Determine if any scripts are not on PATH and format a warning.
    Returns a warning message if one or more scripts are not on PATH,
    otherwise None.
    Nc                 S   s    g | ]}t j |¡ t j¡‘qS r8   )rY   rF   ÚnormcaserL   Úsep©Ú.0Úir8   r8   r;   Ú
<listcomp>�   s    ÿÿz5message_about_scripts_not_on_PATH.<locals>.<listcomp>ÚPATHrQ   c                    s&   i | ]\}}t j |¡ˆ vr||“qS r8   )rY   rF   ry   )r|   Ú
parent_dirrx   ©Únot_warn_dirsr8   r;   Ú
<dictcomp>—   s
    þz5message_about_scripts_not_on_PATH.<locals>.<dictcomp>é   zscript {} isr   zscripts {} areú, éÿÿÿÿz and z.The {} installed in '{}' which is not on PATH.zeConsider adding {} to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.zthis directoryzthese directoriesc                 s   s    � | ]}|r|d  dkV  qdS )r   ú~Nr8   r{   r8   r8   r;   Ú	<genexpr>º   s   € ÿ

ÿz4message_about_scripts_not_on_PATH.<locals>.<genexpr>ziNOTE: The current PATH contains path(s) starting with `~`, which may not be expanded by all applications.Ú
)ÚcollectionsÚdefaultdictÚsetrY   rF   ÚdirnameÚbasenameÚaddÚenvironrl   ÚsplitÚpathsepÚappendry   r^   r_   ÚitemsÚsortedÚlenÚformatÚjoinÚany)rx   Úgrouped_by_dirÚdestfiler€   Úscript_nameÚwarn_forÚ	msg_linesÚdir_scriptsÚsorted_scriptsÚ
start_textÚlast_line_fmtÚwarn_for_tildeÚtilde_warning_msgr8   r�   r;   Ú!message_about_scripts_not_on_PATH€   sT   
þ
þÿÿÿÿÿÿ

r¥   Úoutrowsc                 C   s   t dd„ | D ƒƒS )aŸ  Normalize the given rows of a RECORD file.

    Items in each row are converted into str. Rows are then sorted to make
    the value more predictable for tests.

    Each row is a 3-tuple (path, hash, size) and corresponds to a record of
    a RECORD file (see PEP 376 and PEP 427 for details).  For the rows
    passed to this function, the size can be an integer as an int or string,
    or the empty string.
    c                 s   s$   � | ]\}}}||t |ƒfV  qd S r7   )rC   )r|   Úrecord_pathÚhash_Úsizer8   r8   r;   rˆ   Ý   s   € 
ÿz&_normalized_outrows.<locals>.<genexpr>)r•   )r¦   r8   r8   r;   Ú_normalized_outrowsÈ   s   ÿrª   r§   c                 C   s   | S r7   r8   )r§   r8   r8   r;   Ú_record_to_fs_pathâ   r=   r«   Úrelative_toc                 C   sX   |d urt j | ¡d  ¡ t j |¡d  ¡ krt j | |¡} |  t jjd¡} td| ƒS )Nr   ú/r2   )rY   rF   Ú
splitdriverm   Úrelpathr&   rz   r   )rF   r¬   r8   r8   r;   Ú_fs_to_record_pathæ   s   ÿ
r°   Úold_csv_rowsÚ	installedr5   Ú	generatedÚlib_dirc                 C   sì   g }| D ]H}t |ƒdkrt d|¡ td|d ƒ}| ||¡}||v r,tt|ƒƒ\}	}
nt |ƒdkr6|d nd}	t |ƒdkrB|d nd}
| ||	|
f¡ q|D ]}t||ƒ}t|ƒ\}	}
| ||	|
f¡ qO| 	¡ D ]
}| |ddf¡ qi|S )z_
    :param installed: A map from archive RECORD path to installation RECORD
        path.
    é   z,RECORD line has more than three elements: %sr2   r   r„   rQ   é   )
r–   ÚloggerÚwarningr   ÚpoprO   r«   r“   r°   Úvalues)r±   r²   r5   r³   r´   Úinstalled_rowsÚrowÚold_record_pathÚnew_record_pathrJ   rN   ÚfrF   Úinstalled_record_pathr8   r8   r;   Úget_csv_rows_for_installedó   s$   
rÁ   Úconsolec                 C   s  |   ¡ } g }|  dd¡}|rJdtjvr| d| ¡ tj dd¡dkr/| d tjd |¡¡ | dt	ƒ › d	|› �¡ d
d„ | D ƒ}|D ]}| |= qD|  dd¡}|rwdtjvr^| d| ¡ | d t	ƒ |¡¡ dd„ | D ƒ}|D ]}| |= qq| 
tdj|  ¡ ƒ¡ |S )zk
    Given the mapping from entrypoint name to callable, return the relevant
    console script specs.
    ÚpipNÚENSUREPIP_OPTIONSzpip = rQ   Ú
altinstallz
pip{} = {}r   z = c                 S   ó   g | ]
}t  d |¡r|‘qS )zpip(\d(\.\d)?)?$©ÚreÚmatch©r|   Úkr8   r8   r;   r~   J  s    z,get_console_script_specs.<locals>.<listcomp>Úeasy_installzeasy_install = zeasy_install-{} = {}c                 S   rÆ   )zeasy_install(-\d\.\d)?$rÇ   rÊ   r8   r8   r;   r~   X  s
    ÿÿú{} = {})Úcopyr¹   rY   r�   r“   rl   r—   r^   Úversion_infor   Úextendr   r”   )rÂ   Úscripts_to_generateÚ
pip_scriptÚpip_eprË   Úeasy_install_scriptÚeasy_install_epr8   r8   r;   Úget_console_script_specs  s<   #
ÿ
ÿÿÿrÖ   c                   @   s>   e Zd Zdedededdfdd„Zdefdd	„Zdd
d„Z	dS )ÚZipBackedFiler3   r4   Úzip_filer6   Nc                 C   s   || _ || _|| _d| _d S ©NF)r3   r4   Ú	_zip_filer5   )r:   r3   r4   rØ   r8   r8   r;   Ú__init__e  s   
zZipBackedFile.__init__c                 C   s   | j  | j¡S r7   )rÚ   Úgetinfor3   r9   r8   r8   r;   Ú_getinfom  s   zZipBackedFile._getinfoc              	   C   s¶   t j | j¡}t|ƒ t j | j¡rt  | j¡ |  ¡ }| j 	|¡�$}t	| jdƒ�}t
 ||¡ W d   ƒ n1 s:w   Y  W d   ƒ n1 sIw   Y  t|ƒrYt| jƒ d S d S )NrX   )rY   rF   r�   r4   r(   ÚexistsÚunlinkrÝ   rÚ   r[   ÚshutilÚcopyfileobjr.   r-   )r:   r€   Úzipinfor¿   Údestr8   r8   r;   r<   p  s   
ÿ€ÿÿzZipBackedFile.saver>   )
r?   r@   rA   r2   rC   r   rÛ   r   rÝ   r<   r8   r8   r8   r;   r×   d  s    ÿÿÿ
þr×   c                   @   s    e Zd Zd	dd„Zd
dd„ZdS )Ú
ScriptFileÚfiler1   r6   Nc                 C   s$   || _ | j j| _| j j| _d| _d S rÙ   )Ú_filer3   r4   r5   )r:   rå   r8   r8   r;   rÛ   �  s   


zScriptFile.__init__c                 C   s   | j  ¡  t| jƒ| _d S r7   )ræ   r<   ri   r4   r5   r9   r8   r8   r;   r<   “  s   
zScriptFile.save)rå   r1   r6   Nr>   )r?   r@   rA   rÛ   r<   r8   r8   r8   r;   rä   Œ  s    
rä   c                       s&   e Zd Zdeddf‡ fdd„Z‡  ZS )ÚMissingCallableSuffixrv   r6   Nc                    s   t ƒ  d |¡¡ d S )Nz¢Invalid script entry point: {} - A callable suffix is required. Cf https://packaging.python.org/specifications/entry-points/#use-for-scripts for more information.)ÚsuperrÛ   r—   )r:   rv   ©Ú	__class__r8   r;   rÛ   ™  s   üzMissingCallableSuffix.__init__)r?   r@   rA   rC   rÛ   Ú__classcell__r8   r8   ré   r;   rç   ˜  s    rç   Úspecificationc                 C   s.   t | ƒ}|d ur|jd u rtt|ƒƒ‚d S d S r7   )r   Úsuffixrç   rC   )rì   Úentryr8   r8   r;   Ú_raise_for_invalid_entrypoint¢  s   ÿrï   c                       s8   e Zd Zddedeeef dee f‡ fdd„Z‡  ZS )ÚPipScriptMakerNrì   Úoptionsr6   c                    s   t |ƒ tƒ  ||¡S r7   )rï   rè   Úmake)r:   rì   rñ   ré   r8   r;   rò   ©  s   zPipScriptMaker.maker7   )	r?   r@   rA   rC   r   r	   r   rò   rë   r8   r8   ré   r;   rð   ¨  s    0rð   TFru   Ú	wheel_zipÚ
wheel_pathÚschemeÚ	pycompileÚwarn_script_locationÚ
direct_urlÚ	requestedc           8   	      s(  t || ƒ\}}	t|	ƒr|j‰n|j‰i ‰tƒ ‰g }
	d8dtdtdtddf‡‡‡fdd„}d	tdtfd
d„}dtdtddf‡fdd„‰ dtdtdt	tgdf f‡ fdd„}dtdt
dt	tgdf f‡ ‡fdd„}d	tdtfdd„}ttt | ¡ ƒ}t||ƒ}t||ƒ\}}||ˆƒ}t||ƒ}d	tdtfdd„}t||ƒ\}}|||ƒ}t||ƒ}t||ƒ}ttˆƒt| ƒƒ}t|ƒ\‰‰dddtf‡‡fdd„}t||ƒ}t||ƒ}tt|ƒ}t||ƒ}|D ]}| ¡  ||j|j|jƒ qßdtt f‡‡fdd „}d	tdtfd!d"„} |�rktƒ �Q}!t ¡ �< t d#¡ |ƒ D ]+}"t j!|"d$d$d%�}#|#�rB| |"ƒ}$t"j# $|$¡�s2J ‚td&|$ %t"j#j&d'¡ƒ}%||%|$ƒ �qW d  ƒ n	1 �sOw   Y  W d  ƒ n	1 �s_w   Y  t' (|! )¡ ¡ t*d|j+ƒ}&d$|&_,d(h|&_-d$|&_.t/ˆƒ}'t0t1d)j2ˆ 3¡ ƒƒ}(|& 4|'¡})|
 5|)¡ |
 5|& 4|(d*d$i¡¡ |�r¯t6|)ƒ}*|*du�r¯t' 7|*¡ d+t8ƒ  @ ‰t9j:d	td,t;dtt< f‡fd-d.„ƒ}+t"j# =ˆ|¡},t"j# =|,d/¡}-|+|-ƒ�}.|. >d0¡ W d  ƒ n	1 �sêw   Y  |
 ?|-¡ |du�r$t"j# =|,t@¡}/|+|/ƒ�}0|0 >| A¡  Bd1¡¡ W d  ƒ n	1 �sw   Y  |
 ?|/¡ |�rIt"j# =|,d2¡}1tC|1d3ƒ� W d  ƒ n	1 �s?w   Y  |
 ?|1¡ | Dd4¡}2t0tE F|2 G¡ ¡ƒ}3tH|3ˆˆ|
ˆd5�}4t"j# =|,d4¡}5|+|5fi tId6ƒ¤Ž�}6tE Jtd7|6ƒ¡}7|7 KtL|4ƒ¡ W d  ƒ dS 1 �s�w   Y  dS )9a�  Install a wheel.

    :param name: Name of the project to install
    :param wheel_zip: open ZipFile for wheel being installed
    :param scheme: Distutils scheme dictating the install directories
    :param req_description: String used in place of the requirement, for
        logging
    :param pycompile: Whether to byte-compile installed Python files
    :param warn_script_location: Whether to check that scripts are installed
        into a directory on PATH
    :raises UnsupportedWheel:
        * when the directory holds an unpacked wheel with incompatible
          Wheel-Version
        * when the .dist-info dir does not match the wheel
    FÚsrcfiler›   Úmodifiedr6   Nc                    s,   t |ˆƒ}|ˆ| < |rˆ  t |ƒ¡ dS dS )z6Map archive RECORD paths to installation RECORD paths.N)r°   r�   )rú   r›   rû   Únewpath)r5   r²   r´   r8   r;   Úrecord_installedÖ  s
   
ÿz(_install_wheel.<locals>.record_installedrF   c                 S   s
   |   d¡S )Nr­   )Úendswith©rF   r8   r8   r;   Úis_dir_pathß  s   
z#_install_wheel.<locals>.is_dir_pathÚdest_dir_pathÚtarget_pathc                    s$   t | |ƒsd}t| ˆ || ¡ƒ‚d S )NzRThe wheel {!r} has a file {!r} trying to install outside the target directory {!r})r,   r   r—   )r  r  Úmessage)rô   r8   r;   Úassert_no_path_traversalâ  s   
ÿÿûz0_install_wheel.<locals>.assert_no_path_traversalrØ   rã   r1   c                    s   dt ddf‡‡ ‡fdd„}|S )Nr§   r6   r1   c                    s0   t j | ¡}t j ˆ|¡}ˆ ˆ|ƒ t| |ˆƒS r7   )rY   rF   Únormpathr˜   r×   )r§   Únormed_pathr4   )r  rã   rØ   r8   r;   Úmake_root_scheme_fileï  s   
zM_install_wheel.<locals>.root_scheme_file_maker.<locals>.make_root_scheme_file)r2   )rØ   rã   r  )r  )rã   rØ   r;   Úroot_scheme_file_makerì  s   z._install_wheel.<locals>.root_scheme_file_makerrõ   c                    s2   ‡ fdd„t D ƒ‰dtddf‡‡‡‡fdd„}|S )Nc                    s   i | ]}|t ˆ |ƒ“qS r8   )Úgetattr)r|   Úkey)rõ   r8   r;   rƒ   ú  s    zB_install_wheel.<locals>.data_scheme_file_maker.<locals>.<dictcomp>r§   r6   r1   c           	   	      s°   t j | ¡}z| t jjd¡\}}}W n ty$   d ˆ| ¡}t|ƒ‚w zˆ| }W n tyE   d 	t
ˆƒ¡}d ˆ|| |¡}t|ƒ‚w t j 	||¡}ˆ ||ƒ t| |ˆƒS )Nr¶   zbUnexpected file in {}: {!r}. .data directory contents should be named like: '<scheme key>/<path>'.r…   zŠUnknown scheme key used in {}: {} (for file {!r}). .data directory contents should be in subdirectories named with a valid scheme key ({}))rY   rF   r  r‘   rz   Ú
ValueErrorr—   r   ÚKeyErrorr˜   r•   r×   )	r§   r  Ú_Ú
scheme_keyÚdest_subpathr  Úscheme_pathÚvalid_scheme_keysr4   )r  Úscheme_pathsrô   rØ   r8   r;   Úmake_data_scheme_fileü  s*   ýûüù	
zM_install_wheel.<locals>.data_scheme_file_maker.<locals>.make_data_scheme_file)r#   r2   )rØ   rõ   r  )r  rô   )rõ   r  rØ   r;   Údata_scheme_file_maker÷  s   z._install_wheel.<locals>.data_scheme_file_makerc                 S   s   |   dd¡d  d¡S )Nr­   r„   r   ú.data)r‘   rþ   rÿ   r8   r8   r;   Úis_data_scheme_path  s   z+_install_wheel.<locals>.is_data_scheme_pathc                 S   s2   |   dd¡}t|ƒdko|d  d¡o|d dkS )Nr­   r¶   r   r  r„   rx   )r‘   r–   rþ   )rF   Úpartsr8   r8   r;   Úis_script_scheme_path"  s   &z-_install_wheel.<locals>.is_script_scheme_pathrå   c                    sz   | j }tj |¡}| ¡  d¡r|d d… }n| ¡  d¡r%|d d… }n| ¡  d¡r3|d d… }n|}|ˆ v p<|ˆv S )Nz.exeéüÿÿÿz
-script.pyiöÿÿÿz.pya)r4   rY   rF   rŽ   rm   rþ   )rå   rF   ru   Ú	matchname)rÂ   Úguir8   r;   Úis_entrypoint_wrapper5  s   z-_install_wheel.<locals>.is_entrypoint_wrapperc                  3   sJ   � t tˆ  ¡ ƒƒD ]} tj ˆ| ¡}tj |¡sq	| d¡sq	|V  q	d S )Nz.py)r•   rŒ   rº   rY   rF   r˜   rZ   rþ   )Úinstalled_pathÚfull_installed_path)r²   r´   r8   r;   Úpyc_source_file_pathsP  s   €
úz-_install_wheel.<locals>.pyc_source_file_pathsc                 S   s   t j | ¡S )z8Return the path the pyc file would have been written to.)Ú	importlibÚutilÚcache_from_sourcerÿ   r8   r8   r;   Úpyc_output_path]  s   z'_install_wheel.<locals>.pyc_output_pathÚignoreT)ÚforceÚquietr2   r­   rQ   rÍ   r  i¶  Úkwargsc                 ;   sV   � t | fi |¤Ž�}|V  W d   ƒ n1 sw   Y  t |jˆ ¡ t|j| ƒ d S r7   )r%   rY   Úchmodru   r&   )rF   r'  r¿   )Úgenerated_file_moder8   r;   Ú_generate_file’  s   €ÿz&_install_wheel.<locals>._generate_fileÚ	INSTALLERs   pip
rR   Ú	REQUESTEDrX   ÚRECORD)r²   r5   r³   r´   ÚwzIO[str])F)Mr/   rn   ÚpurelibÚplatlibrŒ   r2   rC   rD   r   r   r$   r   r   Únamelistr   r*   Úmapr   r    r   r   rw   rä   r<   r3   r4   r5   r   r'   ÚwarningsÚcatch_warningsÚfilterwarningsÚ
compileallÚcompile_filerY   rF   rÞ   r&   rz   r·   ÚdebugÚgetvaluerð   rx   ÚclobberÚvariantsÚset_moderÖ   Úlistr   r—   r”   Úmake_multiplerÐ   r¥   r¸   r+   Ú
contextlibÚcontextmanagerr	   r
   r˜   rd   r“   r!   Úto_jsonr`   r[   Ú	read_textÚcsvÚreaderÚ
splitlinesrÁ   rU   ÚwriterÚ	writerowsrª   )8ru   ró   rô   rõ   rö   r÷   rø   rù   Úinfo_dirrj   r³   rý   r   r  r  r  ÚpathsÚ
file_pathsÚroot_scheme_pathsÚdata_scheme_pathsr  Úfilesr  Úother_scheme_pathsÚscript_scheme_pathsr  Úother_scheme_filesÚdistributionr  Úscript_scheme_filesrå   r  r#  ÚstdoutrF   ÚsuccessÚpyc_pathÚpyc_record_pathÚmakerrÑ   Úgui_scripts_to_generateÚgenerated_console_scriptsÚmsgr*  Údest_info_dirÚinstaller_pathÚinstaller_fileÚdirect_url_pathÚdirect_url_fileÚrequested_pathÚrecord_textÚrecord_rowsÚrowsr§   Úrecord_filerF  r8   )r  r5   rÂ   r)  r  r²   r´   rô   r;   Ú_install_wheel®  s  ÿÿÿÿþ	
ÿÿþÿÿþ!


ÿ


þÿ





ÿ
€øþ€ÿ



 
ÿ


ÿ
ÿ

û	$üre  Úreq_descriptionc              
   c   sD   � zd V  W d S  t y! } zd | |jd ¡}t |ƒ|‚d }~ww )NzFor req: {}. {}r   )r   r—   Úargs)rf  Úer  r8   r8   r;   Úreq_error_contextÄ  s   €
€þri  c           	      C   s‚   t |dd��1}t|ƒ� t| |||||||d� W d   ƒ n1 s"w   Y  W d   ƒ d S W d   ƒ d S 1 s:w   Y  d S )NT)Ú
allowZip64)ru   ró   rô   rõ   rö   r÷   rø   rù   )r   ri  re  )	ru   rô   rõ   rf  rö   r÷   rø   rù   Úzr8   r8   r;   Úinstall_wheelÍ  s    

øÿÿ"ÿrl  )rE   r7   )TTNF)jÚ__doc__rŠ   r6  r?  rC  r   ÚloggingÚos.pathrY   rÈ   rà   r^   r3  Úbase64r   Úemail.messager   Ú	itertoolsr   r   r   Útypingr   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   Úzipfiler   r   Úpip._vendor.distlib.scriptsr   Úpip._vendor.distlib.utilr   Úpip._vendor.packaging.utilsr   Úpip._internal.exceptionsr   Úpip._internal.locationsr   Úpip._internal.metadatar   r   r    Úpip._internal.models.direct_urlr!   r"   Úpip._internal.models.schemer#   r$   Úpip._internal.utils.filesystemr%   r&   Úpip._internal.utils.miscr'   r(   r)   r*   Úpip._internal.utils.unpackingr+   r,   r-   r.   Úpip._internal.utils.wheelr/   r0   r1   Ú	getLoggerr?   r·   rC   r2   ÚintÚInstalledCSVRowrO   rU   rD   ri   rn   rw   r¥   rª   r«   r°   rÁ   rÖ   r×   rä   rç   rï   rð   re  r@  ri  rl  r8   r8   r8   r;   Ú<module>   sê    H
	
 *Hÿ
þ
ÿ
þýüû
ú Q(
øÿþýüûúùø	
÷  øÿþýüûúùø	÷