Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/setuptools/_distutils/__pycache__/cygwinccompiler.cpython-37.pyc
Назад
B �5�g�. � @ s d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m Z ddlmZ ddl mZmZmZmZ ddlmZmZ dd lmZ e�d gdgdgd gdgdgdgdgejd� �Zdd� ZdZG dd� de �ZG dd� de�ZdZdZdZ dd� Z!dd � Z"dZ#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� )� UnixCCompiler)� write_file)�DistutilsExecError�DistutilsPlatformError�CCompilerError�CompileError)�LooseVersion�suppress_known_deprecation)�RangeMapZmsvcr70Zmsvcr71Zmsvcr80Zmsvcr90Zmsvcr100Zmsvcr110Zmsvcr120Zvcruntime140) i i ix i� i@ i� i il i� c C sd t �dtj�} yt| �d��}W n tk r4 dS X yt| S tk r^ t d| ��Y nX dS )zaInclude the appropriate MSVC runtime library if Python was built with MSVC 7.0 or later. zMSC v\.(\d{4})r NzUnknown MS Compiler version %s ) �re�search�sys�version�int�group�AttributeError� _msvcr_lookup�KeyError� ValueError)�matchZmsc_ver� r �M/tmp/pip-install-251nq386/setuptools/setuptools/_distutils/cygwinccompiler.py� get_msvcr4 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� Zddd�Zdd� Z� fdd�Ze� fdd��Z� ZS )�CygwinCCompilerz9Handles the Cygwin port of the GNU C compiler to Windows.�cygwinz.oz.az.dll.az.dllzlib%s%szcyg%s%sz.exer c s� t � �|||� t� \}}| �d�||�� |tk rB| �d| � tj� dd�| _ tj� dd�| _| j | _d}| j d| j d | j d| j d | j d�| j|�d� t� | _d S ) Nz%Python's GCC status: {} (details: {})z�Python's pyconfig.h doesn't seem to support your compiler. Reason: %s. Compiling may fail because of undefined preprocessor macros.�CC�gcc�CXXzg++z-sharedz%s -mcygwin -O -Wallz%s -mcygwin -mdll -O -Wallz%s -mcygwinz{} -mcygwin {})�compiler�compiler_so�compiler_cxx� linker_exe� linker_so)�super�__init__�check_config_h�debug_print�format�CONFIG_H_OK�warn�os�environ�get�cc�cxx� linker_dll�set_executablesr � dll_libraries)�self�verbose�dry_run�force�status�details� shared_option)� __class__r r r&