OwlCyberSecurity - MANAGER
Edit File: test_system_info.cpython-38.pyc
U �p�]d! � @ s( d dl mZmZ d dlZd dlZd dlZd dlmZmZ d dl m Z mZ d dlm Z d dlmZmZmZ d dlmZmZ d dlmZmZ d d lmZ d d lmZmZ d dlmZ dd d�ZdatadZdd� Z e � Z!G dd� de�Z"G dd� de"�Z#G dd� de"�Z$G dd� de"�Z%G dd� de&�Z'dS )� )�division�print_functionN)�mkstemp�mkdtemp)�Popen�PIPE)�DistutilsError)�assert_�assert_equal� assert_raises)� ccompiler�customized_ccompiler)�system_info�ConfigParser)�AliasedOptionError)�default_lib_dirs�default_include_dirs)�_shell_utils� c C s t ttd��| �� 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)�nameZnotfound_actionZcl� r �H/usr/lib/python3/dist-packages/numpy/distutils/tests/test_system_info.py� get_class s � �r! 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 C s� t � } z | j}W nL tk r\ z| js0| �� W n ttfk rN Y Y dS X | jg}Y nX z.t|t t d�}|j �� |j�� |� � W n tk r� Y dS X dS )z? Return True if there appears to be an executable compiler F)�stdout�stderrT)r �compiler�AttributeErrorZinitializedZ initializer � ValueErrorZccr r r"