HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/lib/python3.9/site-packages/pip/_vendor/pep517/__pycache__/check.cpython-39.pyc
a

?�fI�@s�dZddlZddlZddlZddlmZmZddlm	Z	m
ZddlZddl
mZddlZddlZddlmZddlZddlmZdd	lmZdd
lmZe�e�Zdd�Zd
d�Zdd�Zddd�Z ddddd�Z!dd�Z"edkr�e �dS)zHCheck a project and backend by attempting to build using PEP 517 hooks.
�N)�isfile�join)�TomlDecodeError�load)�CalledProcessError)�mkdtemp�)�enable_colourful_output)�BuildEnvironment)�Pep517HookCallerc
CsHt���*}z|�|�t�d�Wn*tyLt�d�YWd�dS0z|�i�}t�d|�Wn.ty�tjddd�YWd�dS0z|�|�t�d�Wn*ty�t�d	�YWd�dS0t�}t�d
|��z$z|�	|i�}t�d|�Wn<t�yJtjddd�YWt
�|�Wd�dS0|�d
��s�t�d|�Wt
�|�Wd�dSt
||�}t|��r�t�d|�n(t�d|�Wt
�|�Wd�dSt�|��r�t�d�n&t�d�Wt
�|�Wd�dSWt
�|�nt
�|�0Wd�dS1�s:0YdS)N�#Installed static build dependencies�+Failed to install static build dependenciesF�Got build requires: %s�'Failure in get_requires_for_build_sdistT��exc_info�$Installed dynamic build dependencies�,Failed to install dynamic build dependencieszTrying to build sdist in %szbuild_sdist returned %rzFailure in build_sdistz.tar.gzz*Filename %s doesn't have .tar.gz extension�Output file %s exists�Output file %s does not existzOutput file is a tar filezOutput file is not a tar file)r
�pip_install�log�infor�errorZget_requires_for_build_sdist�	ExceptionrZbuild_sdist�shutil�rmtree�endswith�pjoinr�tarfileZ
is_tarfile��hooksZbuild_sys_requires�envZreqsZtd�filename�path�r%�</usr/lib/python3.9/site-packages/pip/_vendor/pep517/check.py�check_build_sdistsh






��
�

	
�

�r'c
CsHt���*}z|�|�t�d�Wn*tyLt�d�YWd�dS0z|�i�}t�d|�Wn.ty�tjddd�YWd�dS0z|�|�t�d�Wn*ty�t�d	�YWd�dS0t�}t�d
|��z$z|�	|i�}t�d|�Wn<t�yJtjddd�YWt
�|�Wd�dS0|�d
��s�t�d|�Wt
�|�Wd�dSt
||�}t|��r�t�d|�n(t�d|�Wt
�|�Wd�dSt�|��r�t�d�n&t�d�Wt
�|�Wd�dSWt
�|�nt
�|�0Wd�dS1�s:0YdS)Nrr
FrrTrrrzTrying to build wheel in %szbuild_wheel returned %rzFailure in build_wheelz.whlz'Filename %s doesn't have .whl extensionrrzOutput file is a zip filezOutput file is not a zip file)r
rrrrrZget_requires_for_build_wheelrrZbuild_wheelrrrrr�zipfileZ
is_zipfiler r%r%r&�check_build_wheelOsd






�
�

	
�

�r)c	Cs�t|d�}t|�rt�d�nt�d�dSz`t|��}t|�}Wd�n1sT0Y|d}|d}|d}|�d�}t�d	�Wn&tt	fy�tjd
dd�YdS0t
|||�}t||�}	t||�}
|	s�t�
d
�|
s�t�
d�|	S)Nzpyproject.tomlzFound pyproject.tomlzMissing pyproject.tomlFzbuild-system�requiresz
build-backendzbackend-pathzLoaded pyproject.tomlzInvalid pyproject.tomlTrz%Sdist checks failed; scroll up to seezWheel checks failed)rrrrr�open�	toml_load�getr�KeyErrorrr'r)Zwarning)�
source_dirZ	pyproject�fZpyproject_dataZbuildsysr*ZbackendZbackend_pathr!Zsdist_okZwheel_okr%r%r&�check�s0


&




r1cCs`t��}|jddd�|�|�}t�t|j�}|rDttdd��nttdd��t	�
d�dS)	Nr/z%A directory containing pyproject.toml)�helpz
Checks passed�greenz
Checks failed�redr)�argparse�ArgumentParser�add_argument�
parse_argsr	r1r/�print�ansi�sys�exit)�argvZap�args�okr%r%r&�main�s�

r@zzzz)�resetZboldr4r3cCs8tjdkr,tj��r,t|t|�tdSt|�SdS)N�ntrA)�os�namer;�stdout�isatty�
ansi_codes�str)�s�attrr%r%r&r:�sr:�__main__)N)#�__doc__r5ZloggingrCZos.pathrrrZpip._vendor.tomlrrr,r�
subprocessrr;rZtempfilerr(Zcolorlogr	Zenvbuildr
ZwrappersrZ	getLogger�__name__rr'r)r1r@rGr:r%r%r%r&�<module>s6
98"
�