HEX
Server: Apache
System: Linux infong-uk86 4.4.400-icpu-106 #2 SMP Mon Sep 15 08:23:40 UTC 2025 x86_64
User: u44115835 (4976590)
PHP: 8.4.17
Disabled: NONE
Upload Files
File: //kunden/lib/python3/dist-packages/wheel/__pycache__/bdist_wheel.cpython-39.pyc
a

і.^�=�@s4dZddlZddlZddlZddlZddlZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZdd	lmZdd
lmZddlmZmZddlZdd
lmZmZmZmZddlm Z ddl!m"Z"ddl#m$Z$ddl%mZddl%m&Z'ej(Z(ej)Z)dZ*dd�Z+dd�Z,dd�Z-Gdd�de�Z.dS)zI
Create a wheel (.whl) distribution.

A wheel is a built archive format.
�N)�OrderedDict)�	Generator)�Command)�get_python_version)�log)�iglob)�rmtree)�warn)�ZIP_DEFLATED�
ZIP_STORED�)�
get_abbr_impl�get_impl_ver�get_abi_tag�get_platform)�write_pkg_info)�pkginfo_to_metadata)�	WheelFile)�
pep425tags)�__version__zcp3\dcCst|��dd�S�N�-�_)�	safe_name�replace)�name�r�3/usr/lib/python3/dist-packages/wheel/bdist_wheel.py�
safer_name&srcCst|��dd�Sr)�safe_versionr)�versionrrr�
safer_version*sr!cCs*tt|d��t�|tj�||�dS)Nr)�print�str�os�chmod�stat�S_IWRITE)�func�path�excinforrr�remove_readonly.sr+c@s�eZdZdZedefdefg�Zdddded�fd	d
ddd
ddddd�	d�
e��fddde�dfddg
Zgd�Z
dd�Zdd�Zedd��Zdd �Zd!d"�Zd#ed$fd%d&�Zd'd(�Zed)d*��Zd+d,�ZdS)-�bdist_wheelzcreate a wheel distributionZstored�deflated)z
bdist-dir=�bz1temporary directory for creating the distributionz
plat-name=�pz;platform name to embed in generated filenames (default: %s)N)�	keep-temp�kzPkeep the pseudo-installation tree around after creating the distribution archive)z	dist-dir=�dz-directory to put final built distributions in)�
skip-buildNz2skip rebuilding everything (for testing/debugging))�relativeNz7build the archive using relative paths (default: false))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])�	universalNz'make a universal wheel (default: false)zcompression=z6zipfile compression (one of: {}) (default: 'deflated')z, zpython-tag=z7Python implementation compatibility tag (default: py%s)r)z
build-number=NzqBuild number for this particular version. As specified in PEP-0427, this must start with a digit. [default: None])zpy-limited-api=Nz?Python tag (cp32|cp33|cpNN) for abi3 wheel tag (default: false))r0r3r4r7cCs�d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_dt�d|_d|_d|_d|_dS)N�zipFr-�pyr)�	bdist_dir�data_dir�	plat_name�plat_tag�format�	keep_temp�dist_dir�egginfo_dir�root_is_pure�
skip_buildr4�owner�groupr7�compressionr�
python_tag�build_number�py_limited_api�plat_name_supplied)�selfrrr�initialize_optionsgs&zbdist_wheel.initialize_optionscCs8|jdur&|�d�j}tj�|d�|_|jd|_|jdu|_	z|j
|j|_Wn"tyrt
d�|j���Yn0d}|jdgt||��R�|j��p�|j��|_|jr�t�t|j�s�t
dt��|j�d�}d|v�rt�d�|dd	��}|��d
v�rd|_|jdu�r4|jdd	�� ��s4t
d��dS)
NZbdist�wheelz.datazUnsupported compression: {})r@r<rCzpy-limited-api must match '%s'r7z=The [wheel] section is deprecated. Use [bdist_wheel] instead.r)�1�trueZyesTz1Build tag (build-number) must start with a digit.)!r:Zget_finalized_command�
bdist_baser$r)�join�wheel_dist_namer;r<rJ�supported_compressionsrF�KeyError�
ValueErrorr>�set_undefined_optionsr8�distributionZhas_ext_modulesZhas_c_librariesrBrI�re�match�PY_LIMITED_API_PATTERN�get_option_dict�loggerr	�strip�lowerr7rH�isdigit)rKrPZneed_optionsrM�valrrr�finalize_options|s4
�
�

 zbdist_wheel.finalize_optionscCs8t|j���t|j���f}|jr.||jf7}d�|�S)z4Return distribution full name with - replaced with _r)rrW�get_namer!�get_versionrHrQ)rKZ
componentsrrrrR�s�zbdist_wheel.wheel_dist_namecCs8|jr|j}nF|jrd}n:|jr4|j�d�s4|j}n
t|j�}|dvrTtjdkrTd}|�dd��dd�}|jr�|j	rzd	}n|j
}|d
|f}n�t�}t�}||}|j
r�||�d�r�|j
}d}ntt����}|||f}tj|j|jr�|ndd
�}|j
�s||dk�sJd||df��||v�s4Jd�|���|S)N�anyZmacosx)zlinux-x86_64Zlinux_x86_64i���Z
linux_i686rr�.zpy2.py3ZnoneZcp3Zabi3)Zsupplied_platformrz%s != %sz)would build wheel with unsupported tag {})rJr<rB�
startswithrr:�sys�maxsizerr7rGr
rrIr#rr^rZ
get_supportedr>)rKr<�impl�tagZ	impl_nameZimpl_ver�abi_tagZsupported_tagsrrr�get_tag�s>

�"zbdist_wheel.get_tagcCsH|�d�}d|_d|_|�d�}d|_|js6|�d�|jddd�}|j|_d|_|j|_d|_	|�d	�}d|_
d
D] }t|d|tj
�|j|��qtd}tjd
kr�tj
�tj
�|jd��}||_|_t||jr�dnd|�t�d|j�|�d�|��\}}}	d�|j|||	�}
|j�s&|j}ntj
�|j|�|j��}|�dd�d�t|j� ��t!|j�"���}tj
�|j|�}
|�#|j$|
�|�%|
�tj
�&|j'��s�t�(|j'�tj
�|j'|
d�}t)|d|j*��}|�+|�Wd�n1�s�0Yt,|jdg��-dt.�|f�|j/�sDt�d|j�|j0�sDt1|jt2d�dS)N�
build_scripts�pythonT�	build_extFZbuild�install)Zreinit_subcommands�install_scripts)ZheadersZscripts�dataZpurelibZplatlibZinstall_��ntz..Zinstall_purelibZinstall_platlibzinstalling to %sz{}-{}-{}-{}Zinstall_egg_info)�targetrAz{}-{}.dist-infoz.whl�wZ
dist_filesr,zremoving %s)�onerror)3Zreinitialize_command�
executableZforceZinplacerCZrun_commandr:�root�compileZwarn_dirZno_ep�setattrr$r)rQr;r�normpathZinstall_libbaseZinstall_librBr\�inforlr>rRr4�_ensure_relativeZinstall_baserVrrWrbr!rc�egg2distrA�write_wheelfile�existsr@�makedirsrrFZwrite_files�getattr�appendrr?Zdry_runrr+)rKrmrorprq�keyZbasedir_observed�impl_tagrkr=Zarchive_basenameZarchive_rootZdistinfo_dirnameZdistinfo_dirZ
wheel_pathZwfrrr�run�sv


�
�
�

��
*
�zbdist_wheel.runz
bdist_wheel (�)c
Cs�ddlm}|�}d|d<||d<t|j���|d<|jdurH|j|d<|��\}}}|�d�D]8}|�d�D](}	|�d�D]}
d	�||	|
f�|d
<q|qnq`t	j
�|d�}t�d|�t
|d
��"}t|dd��|�Wd�n1s�0YdS)Nr)�Messagez1.0z
Wheel-VersionrzRoot-Is-PurelibZBuildrerZTagZWHEELzcreating %srv)Zmaxheaderlen)Z
email.messager�r#rBr^rHrl�splitrQr$r)r\r}�openrZflatten)
rKZwheelfile_base�	generatorr��msgr�rkr=riZabiZplatZwheelfile_path�frrrr�(s 

zbdist_wheel.write_wheelfilecCs6tj�|�\}}|dd�tjkr2||dd�}|S)Nrr)r$r)�
splitdrive�sep)rKr)Zdriverrrr~=szbdist_wheel._ensure_relativecCs�|j�d�}t�}tdd�|�dd�d��D��}d|vrXtdt�|�|dd�d|vrld|vrld	}|D]>}t	|�D]0}||vr|t
j�|�r|t
�d
||�|�|�q|qp|S)N�metadatacSsh|]}|�qSrr)�.0Zoptionrrr�	<setcomp>Hsz,bdist_wheel.license_paths.<locals>.<setcomp>Z
license_files)rsrsrZlicense_filezEThe "license_file" option is deprecated. Use "license_files" instead.)zLICEN[CS]E*zCOPYING*zNOTICE*zAUTHORS*z/adding license file "%s" (matched pattern "%s"))rWr[�set�sorted�getr�r	�DeprecationWarning�addrr$r)�isfiler\r})rKr��filesZpatterns�patternr)rrr�
license_pathsDs$��zbdist_wheel.license_pathscCsndd�}||�tj�|�sxddl}tj�tj�|�d�}|�|�}d|f}|rptj�|d�}|d|f7}t|��tj�|�r�|}	t	||�}
t�
|�n�tj�|d�}	t	||	�}
tj||d	d
�d�tj�|d�}t
|d
��}|����}
Wd�n1�s0Y|
�s||�ttj�|d�|
�|jD](}tj�|�}t�|tj�||���q8||�dS)z:Convert an .egg-info directory into a .dist-info directorycSsJtj�|�r0tj�|�s0tj�|�r0t�|�ntj�|�rFt�|�dS)z-Appropriately delete directory, file or link.N)r$r)r��islink�isdir�shutilr�unlink)r/rrr�adios^s$z#bdist_wheel.egg2dist.<locals>.adiosrNz
*.egg-infoz)Egg metadata expected at %s but not foundz- (%s found - possible misnamed archive file?)�PKG-INFOcSshd�S)N>znot-zip-safer�zSOURCES.txtzrequires.txtr)�x�yrrr�<lambda>��z&bdist_wheel.egg2dist.<locals>.<lambda>)�ignorezdependency_links.txt�rZMETADATA)r$r)r��globrQ�dirname�basenamerUr�r�mkdirr�Zcopytreer��readr]rr��copy)rKZegginfo_pathZ
distinfo_pathr�r�Zpat�possible�errZaltZpkginfo_pathZpkg_infoZdependency_links_pathZdependency_links_fileZdependency_linksZlicense_path�filenamerrrr\s<



�,
zbdist_wheel.egg2dist)�__name__�
__module__�__qualname__Zdescriptionrrr
rSrr>rQrZuser_optionsZboolean_optionsrLra�propertyrRrlr��
wheel_versionr�r~r�rrrrrr,4sV��������($
-R
r,)/�__doc__r$r�r&rgrX�collectionsrZemail.generatorrZdistutils.corerZdistutils.sysconfigrZ	distutilsrr\r�rr�warningsr	Zzipfiler
rZ
pkg_resourcesrr
rrrZpkginforr�rZ	wheelfilerrsrr�rrrZrr!r+r,rrrr�<module>s8