o
    ðT·jï  ã                   @   sl   d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZda	dd„ Z
dd„ Zdd„ Zd	d
„ ZdS )é    )ÚIS_WASMNc            	   	   C   s   t d urt S da trt S t dttjƒ› d�¡} | tttjƒd� } t 	¡ }z?t
j |d¡}t|dƒ�}| | ¡ W d   ƒ n1 sCw   Y  tjddg}tj|tjtj|d�}| ¡ \}}W t |¡ nt |¡ w t d	|¡}|rŽtt| d
¡ƒƒtt| d¡ƒƒtt| d¡ƒƒfa t S )N)FFFz8        import os
        import sys
        sys.path = a{  

        def configuration(parent_name='',top_path=None):
            global config
            from numpy.distutils.misc_util import Configuration
            config = Configuration('', parent_name, top_path)
            return config

        from numpy.distutils.core import setup
        setup(configuration=configuration)

        config_cmd = config.get_config_cmd()
        have_c = config_cmd.try_compile('void foo() {}')
        print('COMPILERS:%%d,%%d,%%d' %% (have_c,
                                          config.have_f77c(),
                                          config.have_f90c()))
        sys.exit(99)
        )Úsyspathzsetup.pyÚwÚconfig)ÚstdoutÚstderrÚcwds   COMPILERS:(\d+),(\d+),(\d+)é   é   é   )Ú_compiler_statusr   ÚtextwrapÚdedentÚreprÚsysÚpathÚdictÚtempfileÚmkdtempÚosÚjoinÚopenÚwriteÚ
executableÚ
subprocessÚPopenÚPIPEÚSTDOUTÚcommunicateÚshutilÚrmtreeÚreÚsearchÚboolÚintÚgroup)	ÚcodeÚtmpdirÚscriptÚfÚcmdÚpÚoutÚerrÚm© r/   úb/home/dinkstrade/pdmp-scanner/venv/lib/python3.10/site-packages/numpy/distutils/tests/utilities.pyÚ_get_compiler_status   s<   ýÿÿÿýr1   c                   C   ó
   t ƒ d S )Nr   ©r1   r/   r/   r/   r0   Úhas_c_compilerQ   ó   
r4   c                   C   r2   )Nr	   r3   r/   r/   r/   r0   Úhas_f77_compilerU   r5   r6   c                   C   r2   )Nr
   r3   r/   r/   r/   r0   Úhas_f90_compilerY   r5   r7   )Únumpy.testingr   r   r   r   r   r!   r   r   r   r1   r4   r6   r7   r/   r/   r/   r0   Ú<module>   s   ?