a
    Lf                     @   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 s0    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-   X/var/www/ai-form-bot/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   ?