a ;jg@slddlmZddlZddlZddlZddlZddlZddlZddlZda ddZ ddZ ddZ d d Z dS) )IS_WASMNc Cs"tdur tSdatrtStdttjd}|tttjd}t }z~t j |d}t |d}| |Wdn1s0Ytjddg}tj|tjtj|d}|\}}Wt|n t|0td |}|rtt|d tt|d tt|d fatS) 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) )Zsyspathzsetup.pywconfig)stdoutstderrcwdsCOMPILERS:(\d+),(\d+),(\d+))_compiler_statusrtextwrapdedentreprsyspathdicttempfilemkdtemposjoinopenwrite executable subprocessPopenPIPESTDOUT communicateshutilrmtreeresearchboolintgroup) codeZtmpdirscriptfcmdpouterrmr-I/usr/local/lib/python3.9/site-packages/numpy/distutils/tests/utilities.py_get_compiler_statuss: (   r/cCs tdS)Nrr/r-r-r-r.has_c_compilerQsr1cCs tdS)Nrr0r-r-r-r.has_f77_compilerUsr2cCs tdS)Nr r0r-r-r-r.has_f90_compilerYsr3)Z numpy.testingrr rrrr rrr r/r1r2r3r-r-r-r.s ?