Your IP : 52.14.7.53
o
6��f�? � @ s� d dl Z d dlZd dlZd dlmZmZmZ d dlZd dlm Z d dl
mZ d dlm
Z
mZmZmZ d dlmZ d dlmZ dd � ZG d
d� de �ZG dd
� d
e�ZdZdZdZdd� Ze�d�Zdd� Zdd� Zdd� Z dS )� 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 |dkr2dgS |d
kr9dgS td| ��d S )NzMSC v.���� �
Z1300Zmsvcr70Z1310Zmsvcr71Z1400Zmsvcr80Z1500Zmsvcr90Z1600Zmsvcr100zUnknown MS Compiler version %s )�sys�version�find�
ValueError)Zmsc_posZmsc_ver� r �@/opt/alt/python310/lib64/python3.10/distutils/cygwinccompiler.py� get_msvcr= s �r c @ sX e Zd Z dZdZdZdZdZdZdZ dd d
�Z
dd� Z
ddd�Zddd�Z
d
S )�CygwinCCompiler�cygwinz.o�.az.dllzlib%s%sz%s%sz.exer c C s� t �| |||� t� \}}| �d||f � |tur!| �d| � t� \| _| _| _ | �| j
d| j| j| j f � | jdkrCd| _nd| _| jdkrNd}nd }| jd
ddd
d| j|f d� | jdkrodg| _
| �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.z: gcc %s, ld %s, dllwrap %s
z2.10.90�gcc�dllwrap�2.13�-shared�
-mdll -staticzgcc -mcygwin -O -Wallzgcc -mcygwin -mdll -O -Wallzg++ -mcygwin -O -Wallzgcc -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�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"