관리-도구
편집 파일: environment.cpython-37.pyc
B ��Fd* � @ s@ d dl mZmZmZ d dlZd dlmZ eZG dd� de �Z dS )� )�division�absolute_import�print_functionN)�Distributionc @ sP e Zd Zddd�Zdd� Zdd� Zdd � Zddd�Zd d� Zdd� Z dd� Z d S )�EnvironmentConfig�ALLc K s || _ || _d | _d | _d S )N)�_distutils_section� _conf_keys�_conf� _hook_handler)�self�distutils_section�kw� r �N/opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils/environment.py�__init__ s zEnvironmentConfig.__init__c C s� | j | }|\}}}}|s"dd� }td| j|f � | �||�}td||�f � |rvtj�|d �}td||�f � |r�| jr�| j�|d�d }td||�f � d S ) Nc S s | S )Nr )�xr r r �<lambda> � z1EnvironmentConfig.dump_variable.<locals>.<lambda>z%s.%s:z hook : %sz environ: %s)NN� z config : %s)r �printr r �os�environ�getr )r �name� conf_desc�hook�envvar�confvar�convert�vr r r � dump_variable s zEnvironmentConfig.dump_variablec C s x| j D ]}| �|� qW d S )N)r r! )r r r r r �dump_variables s z EnvironmentConfig.dump_variablesc C s8 y| j | }W n tk r* t|��Y nX | �||�S )N)r �KeyError�AttributeError�_get_var)r r r r r r �__getattr__"