File: D:/Python311/Lib/site-packages/setuptools/_distutils/__pycache__/cygwinccompiler.cpython-311.pyc
�
�nc�0 � �� � d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl
mZ ddlm
Z
mZmZmZ ddlmZmZ d� Zd Z G d
� de � � Z G d� d
e� � ZdZdZdZd� Zd� ZdZdS )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_deprecationc �h � t j � d� � } | dk r�t j | dz | dz � }|dk rdgS |dk rdgS |d k rd
gS |dk rdgS |d
k rdgS |dk rdgS |dk rdgS dt |� � cxk rdk rn nddgS t d|z � � �dS )zaInclude the appropriate MSVC runtime library if Python was built
with MSVC 7.0 or later.
zMSC v.���� �
�1300�msvcr70�1310�msvcr71�1400�msvcr80�1500�msvcr90�1600�msvcr100�1700�msvcr110�1800�msvcr120il i� �ucrt�vcruntime140zUnknown MS Compiler version %s N)�sys�version�find�int�
ValueError)�msc_pos�msc_vers �GD:\Python311\Lib\site-packages\setuptools/_distutils/cygwinccompiler.py� get_msvcrr( sG � � �k���x�(�(�G��"�}� J��+�g��k�G�b�L�8�9���f�� J��;��
��
� J��;��
��
� J��;��
��
� J��;��
��
�
J��<��
��
�
J��<��
��
� J��<��
�S��\�\� J� J� J� J�D� J� J� J� J� J��N�+�+��>��H�I�I�I�7J� J� zxUnable to set runtime library search path on Windows, usually indicated by `runtime_library_dirs` parameter to Extensionc � � � e Zd ZdZdZdZdZdZdZdZ dZ
dZd Zd� fd� Z
ed� � � Zd
� Z dd�Zd� Z� fd�Ze� fd�� � Z� xZS )�CygwinCCompilerz9Handles the Cygwin port of the GNU C compiler to Windows.�cygwinz.oz.az.dll.az.dllzlib%s%szcyg%s%sz.exer c
� �� t � � � |||� � t � � \ }}| � d� ||� � � � |t
ur| � d|z � � t j � dd� � | _
t j � dd� � | _ | j
| _ d}| �
d| j
z d | j
z d| j z d
| j
z d� | j |� � �� � 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++�-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__s �r'