o
    5‘ðiÍ  ã                   @   s2   d Z ddlZddlmZ g fdee fdd„ZdS )a  
Test suite for distutils.

Tests for the command classes in the distutils.command package are
included in distutils.tests as well, instead of using a separate
distutils.command.tests package, since command identification is done
by import rather than matching pre-defined names.
é    N)ÚSequenceÚ	cmd_namesc                 C   s¾   ddl m}m}m} | ¡ }| |¡ |jdkr*z| ¡  W n |jy)   Y dS w |j	D ]/}| r6|| vr6q-t
||ƒ}| rJ|dusIJ d|› d�ƒ‚n|sMq-t |d ¡du r\|d   S q-dS )a<  Check if the compiler components used to build the interpreter exist.

    Check for the existence of the compiler executables whose names are listed
    in 'cmd_names' or all the compiler executables when 'cmd_names' is empty
    and return the first missing executable or None when none is found
    missing.

    r   )Ú	ccompilerÚerrorsÚ	sysconfigÚmsvcNzthe 'z' executable is not configured)Ú	distutilsr   r   r   Únew_compilerÚcustomize_compilerÚcompiler_typeÚ
initializeÚDistutilsPlatformErrorÚexecutablesÚgetattrÚshutilÚwhich)r   r   r   r   ÚcompilerÚnameÚcmd© r   úc/root/parts/websockify/install/lib/python3.10/site-packages/setuptools/_distutils/tests/__init__.pyÚmissing_compiler_executable   s*   	

ÿ

ÿør   )Ú__doc__r   Úcollections.abcr   Ústrr   r   r   r   r   Ú<module>   s    	