AlkantarClanX12
Current Path : /opt/alt/python37/lib64/python3.7/distutils/__pycache__/ |
Current File : //opt/alt/python37/lib64/python3.7/distutils/__pycache__/ccompiler.cpython-37.opt-2.pyc |
B YI~dI� � @ s� d dl Z d dlZd dlZd dlT d dlmZ d dlmZ d dlm Z d dl mZmZ d dl mZmZ d dlmZ G d d � d �ZdZddd �Zdddddd�Zdd� Zddd�Zdd� Zdd� ZdS )� N)�*)�spawn)� move_file)�mkpath)�newer_pairwise�newer_group)�split_quoted�execute)�logc @ s e Zd ZdZdZdZdZdZdZdZ dZ dddddd�ZdddgZdpdd�Z d d � Zdd� Zd d� Zdd� Zdqdd�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zd-d.� Z drd/d0�Z!d1d2� Z"d3d4� Z#d5d6� Z$d7d8� Z%dsd9d:�Z&dtd;d<�Z'd=d>� Z(dud?d@�Z)dAZ*dBZ+dCZ,dvdDdE�Z-dwdFdG�Z.dxdHdI�Z/dydJdK�Z0dLdM� Z1dNdO� Z2dPdQ� Z3dzdRdS�Z4d{dTdU�Z5d|dWdX�Z6d}dYdZ�Z7d~d[d\�Z8dd^d_�Z9d�dadb�Z:dcdd� Z;dedf� Z<d�dgdh�Z=didj� Z>dkdl� Z?d�dndo�Z@dS )�� CCompilerN�czc++Zobjc)z.cz.ccz.cppz.cxxz.mr c C sf || _ || _|| _d | _g | _g | _g | _g | _g | _g | _ x$| j �� D ]}| �|| j | � qHW d S )N) �dry_run�force�verbose� output_dir�macros�include_dirs� libraries�library_dirs�runtime_library_dirs�objects�executables�keys�set_executable)�selfr r r �key� r �8/opt/alt/python37/lib64/python3.7/distutils/ccompiler.py�__init__U s zCCompiler.__init__c K s@ x:|D ]2}|| j kr(td|| jjf ��| �||| � qW d S )Nz$unknown executable '%s' for class %s)r � ValueError� __class__�__name__r )r �kwargsr r r r �set_executablesy s zCCompiler.set_executablesc C s, t |t�rt| |t|�� nt| ||� d S )N)� isinstance�str�setattrr )r r �valuer r r r � s zCCompiler.set_executablec C s0 d}x&| j D ]}|d |kr |S |d7 }qW d S )Nr � )r )r �name�i�defnr r r �_find_macro� s zCCompiler._find_macroc C sd x^|D ]V}t |t�rHt|�dkrHt |d t�s:|d d krHt |d t�std| d d ��qW d S )N)r( � r( r zinvalid macro definition '%s': z.must be tuple (string,), (string, string), or z(string, None))r$ �tuple�lenr% � TypeError)r Zdefinitionsr+ r r r �_check_macro_definitions� s z"CCompiler._check_macro_definitionsc C s. | � |�}|d k r| j|= | j�||f� d S )N)r, r �append)r r) r'