%PDF- %PDF-
Direktori : /lib/python3/dist-packages/setuptools/_distutils/__pycache__/ |
Current File : //lib/python3/dist-packages/setuptools/_distutils/__pycache__/ccompiler.cpython-312.pyc |
� _�d� � �� � d Z ddlZddlZddlZddlZddlmZmZmZm Z m Z ddlmZ ddlm Z ddlmZ ddlmZ dd lmZmZ dd lmZ G d� d� Zd Zdd�Zdddddd�Zd� Zdd�Zd� Zd� Zy)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 �B � e Zd ZdZdZdZdZdZdZdZ dZ dZdddddd�Zg d�Z g Z g Z d?d�Zd � Zd � Zd� Zd� Zd@d �Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z!d� Z"d� Z#d@d�Z$d� Z%d� Z&d� Z'd � Z( dAd!�Z) dBd"�Z*d#� Z+ dCd$�Z,d%Z-d&Z.d'Z/ dDd(�Z0 dDd)�Z1 dDd*�Z2 dEd+�Z3d,� Z4d-� Z5d.� Z6 dFd/�Z7dGd0�Z8dHd1�Z9e:d2� � Z;d3� Z<e=d4� � Z>dHd5�Z?dHd6�Z@ dId7�ZAdJd8�ZBd9� ZCd:� ZDdKd;�ZEd<� ZFd=� ZGdLd>�ZHy)M� 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 c � � || _ || _ || _ d | _ g | _ g | _ g | _ g | _ g | _ g | _ | j j � D ]! }| j || j | � �# y �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 �A/usr/lib/python3/dist-packages/setuptools/_distutils/ccompiler.py�__init__zCCompiler.__init__j s� � ������ ���� ��� ��� ��� ��� ��� %'��!� ����#�#�(�(�*� <�C�����T�%5�%5�c�%:�;� <� c � � |D ]J }|| j vr%t d|�d| j j ��� �| j ||| � �L y)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"