£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>
a
    Re                     @   s   d Z ddlZddlZddlZddlZddlmZmZ ddl	Z	ddl
mZ ddlZddlZddlmZ ddlZddlmZ ddlmZmZ dd	lmZ dd
lmZ eeZdd Zdd Zdd ZdddZ dddddZ!dd Z"edkre   dS )zHCheck a project and backend by attempting to build using PEP 517 hooks.
    N)isfilejoin)CalledProcessError)mkdtemp   )enable_colourful_output)TOMLDecodeError	toml_load)BuildEnvironment)Pep517HookCallerc              
   C   sH  t  *}z|| td W n* tyL   td Y W d    dS 0 z| i }td| W n. ty   tjddd Y W d    dS 0 z|| td W n* ty   td	 Y W d    dS 0 t }td
| z$z| 	|i }td| W n< tyJ   tjddd Y W t
| W d    dS 0 |dstd| W t
| W d    dS t||}t|rtd| n(td| W t
| W d    dS t|rtd n&td W t
| W d    dS W t
| nt
| 0 W d    dS 1 s:0    Y  d S )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 dependencieszTrying to build sdist in %szbuild_sdist returned %rzFailure in build_sdistz.tar.gzz*Filename %s doesn't have .tar.gz extensionOutput file %s existsOutput file %s does not existzOutput file is a tar filezOutput file is not a tar file)r
   pip_installloginfor   errorget_requires_for_build_sdist	Exceptionr   build_sdistshutilrmtreeendswithpjoinr   tarfile
is_tarfilehooksZbuild_sys_requiresenvreqstdfilenamepath r*   /builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_vendor/pep517/check.pycheck_build_sdist   sh    









	


r,   c              
   C   sH  t  *}z|| td W n* tyL   td Y W d    dS 0 z| i }td| W n. ty   tjddd Y W d    dS 0 z|| td W n* ty   td	 Y W d    dS 0 t }td
| z$z| 	|i }td| W n< tyJ   tjddd Y W t
| W d    dS 0 |dstd| W t
| W d    dS t||}t|rtd| n(td| W t
| W d    dS t|rtd n&td W t
| W d    dS W t
| nt
| 0 W d    dS 1 s:0    Y  d S )Nr   r   Fr   r   Tr   r   r   zTrying to build wheel in %szbuild_wheel returned %rzFailure in build_wheelz.whlz'Filename %s doesn't have .whl extensionr   r   zOutput file is a zip filezOutput file is not a zip file)r
   r   r   r   r   r   get_requires_for_build_wheelr   r   build_wheelr   r   r   r    r   zipfile
is_zipfiler#   r*   r*   r+   check_build_wheelP   sd    









	


r1   c              	   C   s   t | d}t|rtd ntd dS zdt|d}t|}W d    n1 sX0    Y  |d }|d }|d }|d	}td
 W n& t	t
fy   tjddd Y dS 0 t| ||}t||}	t||}
|	std |
std |	S )Nzpyproject.tomlzFound pyproject.tomlzMissing pyproject.tomlFrbzbuild-systemrequireszbuild-backendzbackend-pathzLoaded pyproject.tomlzInvalid pyproject.tomlTr   z%Sdist checks failed; scroll up to seezWheel checks failed)r    r   r   r   r   ioopenr	   getr   KeyErrorr   r,   r1   warning)
source_dir	pyprojectfZpyproject_dataZbuildsysr3   backendbackend_pathr$   Zsdist_okZwheel_okr*   r*   r+   check   s0    

&




r>   c                 C   sj   t d t }|jddd || }t  t|j}|rNt	t
dd nt	t
dd td	 d S )
NzQpep517.check is deprecated. Consider switching to https://pypi.org/project/build/r9   z%A directory containing pyproject.toml)helpzChecks passedgreenzChecks failedredr   )r   r8   argparseArgumentParseradd_argument
parse_argsr   r>   r9   printansisysexit)argvZapargsokr*   r*   r+   main   s    


rM   z[0mz[1mz[31mz[32m)resetboldrA   r@   c                 C   s8   t jdkr,tj r,t| t|  td  S t| S d S )NntrN   )osnamerH   stdoutisatty
ansi_codesstr)sattrr*   r*   r+   rG      s    rG   __main__)N)#__doc__rB   r4   loggingrQ   os.pathr   r   r    r   
subprocessr   rH   r!   tempfiler   r/   Zcolorlogr   compatr   r	   Zenvbuildr
   wrappersr   	getLogger__name__r   r,   r1   r>   rM   rU   rG   r*   r*   r*   r+   <module>   s8   
98"
