a
    ç´«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 s†0    Y  tjddg}tj|tjtj|d�}| ¡ \}}W t |¡ nt |¡ 0 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)
        )Z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)	ÚcodeZtmpdirÚscriptÚfÚcmdÚpÚoutÚerrÚm© r-   ú^/var/www/html/laksyashrimp/venv/lib/python3.9/site-packages/numpy/distutils/tests/utilities.pyÚ_get_compiler_status   s:    ýÿ(ÿýr/   c                   C   s
   t ƒ d S )Nr   ©r/   r-   r-   r-   r.   Úhas_c_compilerQ   s    r1   c                   C   s
   t ƒ d S )Nr   r0   r-   r-   r-   r.   Úhas_f77_compilerU   s    r2   c                   C   s
   t ƒ d S )Nr	   r0   r-   r-   r-   r.   Úhas_f90_compilerY   s    r3   )Znumpy.testingr   r   r   r   r   r    r   r   r   r/   r1   r2   r3   r-   r-   r-   r.   Ú<module>   s   ?