Submit
Path:
~
/
/
opt
/
alt
/
python310
/
lib
/
python3.10
/
site-packages
/
setuptools
/
_distutils
/
__pycache__
/
File Content:
cygwinccompiler.cpython-310.pyc
o y�Re*B � @ s� d Z ddlZddlZddlZddlmZmZmZ ddlZddl m Z ddlmZ ddl mZmZmZmZ ddlmZ ddlmZ d d � ZG dd� de �ZG d d� de�ZdZdZdZdd� Ze�d�Zdd� Zdd� Z dd� Z!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)�Popen�PIPE�check_output)� UnixCCompiler)� write_file)�DistutilsExecError�CCompilerError�CompileError�UnknownFileError)�LooseVersion)�find_executablec C s� t j�d�} | dkr>t j| d | d � }|dkrdgS |dkr#dgS |d kr*d gS |dkr1dgS |d kr8dgS td| ��dS )zaInclude the appropriate MSVC runtime library if Python was built with MSVC 7.0 or later. zMSC v.���� � Z1300Zmsvcr70Z1310Zmsvcr71Z1400Zmsvcr80Z1500Zmsvcr90Z1600Zmsvcr100zUnknown MS Compiler version %s N)�sys�version�find� ValueError)Zmsc_posZmsc_ver� r �X/opt/alt/python310/lib/python3.10/site-packages/setuptools/_distutils/cygwinccompiler.py� get_msvcr? s �r c @ sZ e Zd ZdZdZdZdZdZdZdZ dZ dd d�Zdd � Z ddd�Z ddd�ZdS )�CygwinCCompilerz? Handles the Cygwin port of the GNU C compiler to Windows. �cygwinz.o�.az.dllzlib%s%sz%s%sz.exer c C sF t �| |||� t� \}}| �d||f � |tur!| �d| � tj�dd�| _ tj�dd�| _ d| j v rgt� \| _| _ | _| �| jd| j| j | jf � | j dkrY| j | _nd | _| j d krdd}n d}n| j | _d}| jd | j d| j d | j d| j d| j|f d� d| j v r�| jdkr�dg| _| �d� d S t� | _d S )Nz%Python's GCC status: %s (details: %s)z�Python's pyconfig.h doesn't seem to support your compiler. Reason: %s. Compiling may fail because of undefined preprocessor macros.ZCC�gccZCXXzg++z: gcc %s, ld %s, dllwrap %s z2.10.90�dllwrap�2.13�-shared� -mdll -staticz%s -mcygwin -O -Wallz%s -mcygwin -mdll -O -Wallz%s -mcygwinz%s -mcygwin %s�Zcompiler�compiler_soZcompiler_cxxZ linker_exeZ linker_so�2.91.57Zmsvcrtz,Consider upgrading to a newer version of gcc)r �__init__�check_config_hZdebug_print�CONFIG_H_OK�warn�os�environ�get�cc�cxx�get_versions�gcc_version� ld_versionZdllwrap_version� compiler_type� linker_dll�set_executables� dll_librariesr )�self�verbose�dry_run�forceZstatusZdetails� shared_optionr r r r"