[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.191.116.231: ~ $


�t�_I�@sYdZddlZddlZddlZddlmZmZddlm	Z	m
ZddlZddl
mZddlZddlZddlmZddlZddlmZdd	lmZdd
lmZeje�Zdd�Zd
d�Zdd�Zddd�Z ddddddddiZ!dd�Z"edkrUe �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)�Pep517HookCallerc0Cst���}y|j|�tjd�Wn#tk
rOtjd�dSYnXy#|ji�}tjd|�Wn)tk
r�tjddd�dSYnXy|j|�tjd�Wn#tk
r�tjd	�dSYnXt�}tjd
|�z�y&|j	|i�}tjd|�Wn)tk
rPtjddd�dSYnX|j
d
�sttjd|�dSt||�}t|�r�tjd|�ntjd|�dSt
j|�r�tjd�ntjd�dSWdtj|�XdSWdQRXdS)Nz#Installed static build dependenciesz+Failed to install static build dependenciesFzGot build requires: %sz'Failure in get_requires_for_build_sdist�exc_infoTz$Installed dynamic build dependenciesz,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 extensionzOutput file %s existszOutput file %s does not existzOutput file is a tar filezOutput file is not a tar file)r
�pip_install�log�infor�error�get_requires_for_build_sdist�	Exceptionr�build_sdist�endswith�pjoinr�tarfile�
is_tarfile�shutil�rmtree)�hooks�build_sys_requires�env�reqs�td�filename�path�r!��/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-1.el7.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/pep517/check.py�check_build_sdistsV


	
	


		
	

r#c0Cst���}y|j|�tjd�Wn#tk
rOtjd�dSYnXy#|ji�}tjd|�Wn)tk
r�tjddd�dSYnXy|j|�tjd�Wn#tk
r�tjd	�dSYnXt�}tjd
|�z�y&|j	|i�}tjd|�Wn)tk
rPtjddd�dSYnX|j
d
�sttjd|�dSt||�}t|�r�tjd|�ntjd|�dSt
j|�r�tjd�ntjd�dSWdtj|�XdSWdQRXdS)Nz#Installed static build dependenciesz+Failed to install static build dependenciesFzGot build requires: %sz'Failure in get_requires_for_build_sdistrTz$Installed dynamic build dependenciesz,Failed to install dynamic build dependencieszTrying to build wheel in %szbuild_wheel returned %rzFailure in build_wheelz.whlz'Filename %s doesn't have .whl extensionzOutput file %s existszOutput file %s does not existzOutput file is a zip filezOutput file is not a zip file)r
r
rrrr�get_requires_for_build_wheelrr�build_wheelrrr�zipfile�
is_zipfilerr)rrrrrrr r!r!r"�check_build_wheelOsT


	
	


		
	
r(cCs(t|d�}t|�r+tjd�ntjd�dSy`t|��}t|�}WdQRX|d}|d}|d}|jd�}tjd	�Wn/tt	fk
r�tjd
dd�dSYnXt
|||�}t||�}	t||�}
|	stj
d
�|
s$tj
d�|	S)Nzpyproject.tomlzFound pyproject.tomlzMissing pyproject.tomlFzbuild-system�requiresz
build-backendzbackend-pathzLoaded pyproject.tomlzInvalid pyproject.tomlrTz%Sdist checks failed; scroll up to seezWheel checks failed)rrrrr�open�	toml_load�getr�KeyErrorrr#r(�warning)�
source_dir�	pyproject�fZpyproject_dataZbuildsysr)�backend�backend_pathrZsdist_okZwheel_okr!r!r"�check�s0



	

r4cCs�tj�}|jddd�|j|�}t�t|j�}|r`ttdd��n ttdd��t	j
d�dS)	Nr/�helpz%A directory containing pyproject.tomlz
Checks passed�greenz
Checks failed�redr)�argparse�ArgumentParser�add_argument�
parse_argsr	r4r/�print�ansi�sys�exit)�argvZap�args�okr!r!r"�main�srC�resetzZboldzr7zr6zcCsFtjdkr8tjj�r8t|t|�tdSt|�SdS)N�ntrD)�os�namer>�stdout�isatty�
ansi_codes�str)�s�attrr!r!r"r=�sr=�__main__)#�__doc__r8�loggingrF�os.pathrrrZpip._vendor.tomlrrr+r�
subprocessrr>r�tempfilerr&Zcolorlogr	Zenvbuildr
�wrappersr�	getLogger�__name__rr#r(r4rCrJr=r!r!r!r"�<module>s498"

Filemanager

Name Type Size Permission Actions
__init__.cpython-35.pyc File 317 B 0644
_in_process.cpython-35.pyc File 8.64 KB 0644
build.cpython-35.pyc File 3.61 KB 0644
check.cpython-35.pyc File 5.19 KB 0644
colorlog.cpython-35.pyc File 3.11 KB 0644
compat.cpython-35.pyc File 1.13 KB 0644
dirtools.cpython-35.pyc File 1.45 KB 0644
envbuild.cpython-35.pyc File 4.63 KB 0644
meta.cpython-35.pyc File 3 KB 0644
wrappers.cpython-35.pyc File 10.88 KB 0644