Server IP : 162.213.251.212 / Your IP : 18.191.31.223 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/lib64/python3.8/distutils/command/__pycache__/ |
Upload File : |
U e5d=3 � @ sl d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m Z ddd �ZG d d� de�Zddd �Z dS )a� distutils.command.config Implements the Distutils 'config' command, a (mostly) empty command class that exists mainly to be sub-classed by specific module distributions and applications. The idea is that while every "config" command is different, at least they're all named the same, and users always see "config" in the list of standard commands. Also, this is a good place to put common configure-like tasks: "try to compile this C code", or "figure out where this header file lives". � N)�Command)�DistutilsExecError)�customize_compiler)�logz.cz.cxx)�czc++c @ s� e Zd ZdZdddddddd d g Zdd� Zd d� Zdd� Zdd� Zdd� Z dd� Z dd� Zdd� Zdd� Z d0dd �Zd1d!d"�Zd2d#d$�Zd3d%d&�Zd4d'd(�Zd5d*d+�Zdddg fd,d-�Zd6d.d/�ZdS )7�configzprepare to build)z compiler=Nzspecify the compiler type)zcc=Nzspecify the compiler executable)z include-dirs=�Iz.list of directories to search for header files)zdefine=�DzC preprocessor macros to define)zundef=�Uz!C preprocessor macros to undefine)z libraries=�lz!external C libraries to link with)z library-dirs=�Lz.directories to search for external C libraries)�noisyNz1show every action (compile, link, run, ...) taken)zdump-sourceNz=dump generated source files before attempting to compile themc C s4 d | _ d | _d | _d | _d | _d| _d| _g | _d S )N� )�compilerZcc�include_dirs� libraries�library_dirsr �dump_source� temp_files��self� r �0/usr/lib64/python3.8/distutils/command/config.py�initialize_options3 s zconfig.initialize_optionsc C s� | j d kr| jj pg | _ nt| j t�r6| j �tj�| _ | jd krHg | _nt| jt�r^| jg| _| jd krpg | _nt| jt�r�| j�tj�| _d S �N) r Zdistribution� isinstance�str�split�os�pathsepr r r r r r �finalize_optionsB s zconfig.finalize_optionsc C s d S r r r r r r �runR s z config.runc C sz ddl m}m} t| j|�sv|| j| jdd�| _t| j� | jrN| j�| j� | j rb| j� | j � | jrv| j�| j� dS )z^Check that 'self.compiler' really is a CCompiler object; if not, make it one. r )� CCompiler�new_compilerr )r �dry_runZforceN) �distutils.ccompilerr"