관리-도구
편집 파일: ccompiler.cpython-311.pyc
� ,�Reϸ � �� � d Z ddlZddlZddlZddlmZmZmZmZm Z ddl m Z ddlmZ ddl mZ ddlmZ dd lmZmZ dd lmZ G d� d� � Zd Zdd�Zdddddd�Zd� Zdd�Zd� Zd� ZdS )z�distutils.ccompiler Contains CCompiler, an abstract base class that defines the interface for the Distutils compiler abstraction model.� N� )�CompileError� LinkError�UnknownFileError�DistutilsPlatformError�DistutilsModuleError)�spawn)� move_file)�mkpath)�newer_group)�split_quoted�execute)�logc �P � e Zd ZdZdZdZdZdZdZdZ dZ dZdddddd�Zg d�Z g Z g Z dDd �Zd � Zd� Zd� Zd � ZdEd�Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z!d� Z"d� Z#dEd�Z$d� Z%d� Z&d � Z'd!� Z( dFd"�Z) dGd#�Z*d$� Z+ dHd%�Z,d&Z-d'Z.d(Z/ dId)�Z0 dId*�Z1 dId+�Z2 dJd,�Z3d-� Z4d.� Z5d/� Z6 dKd0�Z7dLd1�Z8dMd3�Z9e:d4� � � Z;d5� Z<e=d6� � � Z>dMd7�Z?dMd8�Z@ dNd:�ZAdOd<�ZBd=� ZCd>� ZDdPd?�ZEd@� ZFdA� ZGdQdC�ZHdS )R� CCompilera� Abstract base class to define the interface that must be implemented by real compiler classes. Also has some utility methods used by several compiler classes. The basic idea behind a compiler abstraction class is that each instance can be used for all the compile/link steps in building a single project. Thus, attributes common to all of those compile and link steps -- include directories, macros to define, libraries to link against, etc. -- are attributes of the compiler instance. To allow for variability in how individual files are treated, most of those attributes may be varied on a per-compilation or per-link basis. N�c�c++�objc)�.cz.ccz.cppz.cxxz.m)r r r r c � � || _ || _ || _ d | _ g | _ g | _ g | _ g | _ g | _ g | _ | j � � � D ]#}| � || j | � � �$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 �keys ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/_distutils/ccompiler.py�__init__zCCompiler.__init__i s� � ������ ���� ��� ��� ��� ��� ��� %'��!� ����#�(�(�*�*� <� <�C�����T�%5�c�%:�;�;�;�;� <� <� c � � |D ]F}|| j vrt d|�d| j j ��� � �| � ||| � � �GdS )a� Define the executables (and options for them) that will be run to perform the various stages of compilation. The exact set of executables that may be specified here depends on the compiler class (via the 'executables' class attribute), but most will have: compiler the C/C++ compiler linker_so linker used to create shared objects and libraries linker_exe linker used to create binary executables archiver static library creator On platforms with a command-line (Unix, DOS/Windows), each of these is a string that will be split into executable name and (optional) list of arguments. (Splitting the string is done similarly to how Unix shells operate: words are delimited by spaces, but quotes and backslashes can override this. See 'distutils.util.split_quoted()'.) zunknown executable 'z' for class N)r"