관리-도구
편집 파일: test_npy_pkg_config.cpython-37.pyc
B ��Fd* � @ s� d dl mZmZmZ d dlZd dlmZmZ d dlm Z m Z mZ dZdddd d �Z dZdd dd d �ZG dd� de �ZG dd� de �Zedkr�e � dS )� )�division�absolute_import�print_functionN)�read_config�parse_flags)�TestCase�run_module_suite�temppathzk[meta] Name = foo Description = foo lib Version = 0.1 [default] cflags = -I/usr/include libs = -L/usr/lib z-I/usr/includez -L/usr/libz0.1�foo)�cflags�libflags�version�namez�[meta] Name = foo Description = foo lib Version = 0.1 [variables] prefix = /foo/bar libdir = ${prefix}/lib includedir = ${prefix}/include [default] cflags = -I${includedir} libs = -L${libdir} z-I/foo/bar/includez-L/foo/bar/libc @ s e Zd Zdd� Zdd� ZdS )�TestLibraryInfoc C s� t d��>}t|d��}|�t� W d Q R X tj�|�d }t|�}W d Q R X | �|� � t d k� | �|�� t d k� | �|jt d k� | �|j t d k� d S )Nzfoo.ini�wr r r r r )r �open�write�simple�os�path�splitextr � assertTruer �simple_d�libsr r )�selfr �f�pkg�out� r ��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils/tests/test_npy_pkg_config.py�test_simple( s zTestLibraryInfo.test_simplec C s� t d��>}t|d��}|�t� W d Q R X tj�|�d }t|�}W d Q R X | �|� � t d k� | �|�� t d k� | �|jt d k� | �|j t d k� d|jd <