관리-도구
편집 파일: test_system_info.cpython-311.pyc
� �܋f�* � �r � d dl Z d dlZd dlZd dlmZmZ d dlmZmZ d dl m Z d dlmZm Z mZ d dlmZmZ d dlmZmZmZ d dlmZ d d lmZmZ d d lmZ dd�Zd at6 adZd� Z e� � Z G d� de� � Z G d� de � � Z! G d� de � � Z" G d� de � � Z# G d� d� � Z$d� Z%dS )� N)�mkstemp�mkdtemp)�Popen�PIPE)�DistutilsError)�assert_�assert_equal� assert_raises)� ccompiler�customized_ccompiler)�system_info�ConfigParser�mkl_info)�AliasedOptionError)�default_lib_dirs�default_include_dirs)�_shell_utils� c � � t t t d�� | � � � t � � } |� � S )zg notfound_action: 0 - do nothing 1 - display warning message 2 - raise error )�temp1�temp2�duplicate_options)� Temp1Info� Temp2Info�DuplicateOptionInfo�get�lower�_system_info)�name�notfound_action�cls �y/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/distutils/tests/test_system_info.py� get_classr# sB � � ��2� � � �C�� � ���l�+�+� � �2�4�4�K� a� [ALL] library_dirs = {dir1:s}{pathsep:s}{dir2:s} libraries = {lib1:s},{lib2:s} extra_compile_args = -I/fake/directory -I"/path with/spaces" -Os runtime_library_dirs = {dir1:s} [temp1] library_dirs = {dir1:s} libraries = {lib1:s} runtime_library_dirs = {dir1:s} [temp2] library_dirs = {dir2:s} libraries = {lib2:s} extra_link_args = -Wl,-rpath={lib2_escaped:s} rpath = {dir2:s} [duplicate_options] mylib_libs = {lib1:s} libraries = {lib2:s} z� /* This file is generated from numpy/distutils/testing/test_system_info.py */ #include<stdio.h> void foo(void) { printf("Hello foo"); } void bar(void) { printf("Hello bar"); } c � � t � � } | j }nN# t $ rA | j s| � � � n# t t f$ r Y Y dS w xY w| j g}Y nw xY w t |t t �� � }|j � � � |j � � � |� � � n# t $ r Y dS w xY wdS )z? Return True if there appears to be an executable compiler F)�stdout�stderrT)r �compiler�AttributeError�initialized� initializer � ValueError�ccr r r&