File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/setuptools/_distutils/compilers/C/__pycache__/cygwin.cpython-310.pyc
Back
o ;j. � @ s� d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m Z mZ ddlm Z ddlmZ ddlmZmZ d d lmZ d dl mZmZ dd � ZdZG dd� dej�ZG dd� de�ZdZdZdZdd� Zdd� ZdZ dS )a distutils.cygwinccompiler Provides the CygwinCCompiler class, a subclass of UnixCCompiler that handles the Cygwin port of the GNU C compiler to Windows. It also contains the Mingw32CCompiler class which handles the mingw32 port of GCC (same as cygwin in no-cygwin mode). � N)�check_output� )�DistutilsExecError�DistutilsPlatformError)� write_file)�get_config_vars)�LooseVersion�suppress_known_deprecation� )�unix)�CompileError�Errorc C s g S )z6No longer needed, but kept for backward compatibility.� r r r �\/opt/saltstack/salt/lib/python3.10/site-packages/setuptools/_distutils/compilers/C/cygwin.py� get_msvcr s r zxUnable to set runtime library search path on Windows, usually indicated by `runtime_library_dirs` parameter to Extensionc s� e Zd ZdZdZdZdZdZdZdZ dZ dZd Zd� fdd� Z ed d� �Zdd� Z d� fdd� Zdd� Z� fdd�Ze� fdd��Z� ZS )�Compilerz9Handles the Cygwin port of the GNU C compiler to Windows.�cygwinz.oz.az.dll.az.dllzlib%s%szcyg%s%sz.exeFc s t � j||d� t� \}}| �d|� d|� d�� |tur&| �d|� d�� tdd�\| _| _t j �d| jp7d �| _t j �d| jpBd �| _| j| _| j| _ d}| j| j� d�| j� d �| j� d�| j� d �| j� d�| j� d|� �| j� d�| j � d|� �d� t� | _d S )N)�forcezPython's GCC status: z (details: �)zCPython's pyconfig.h doesn't seem to support your compiler. Reason: z>. Compiling may fail because of undefined preprocessor macros.�CC�CXX�gcczg++�-sharedz -mcygwin -O -Wallz -mcygwin -mdll -O -Wallz -mcygwinz -mcygwin )�compiler�compiler_so�compiler_cxx�compiler_so_cxx� linker_exe� linker_so�linker_exe_cxx� linker_so_cxx)�super�__init__�check_config_hZdebug_print�CONFIG_H_OK�warnr �cc�cxx�os�environ�get� linker_dll�linker_dll_cxx�set_executablesr � dll_libraries)�self�verboser �status�details� shared_option�� __class__r r r"