B
s1 @ s d Z ddlZddlZddlZddlmZmZmZ ddlZddl m
Z
ddlmZ ddl
mZmZmZmZ ddlmZ ddlmZ d d
ZG dd de
ZG d
d deZdZdZdZdd ZedZdd 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)PopenPIPEcheck_output)
UnixCCompiler)
write_file)DistutilsExecErrorCCompilerErrorCompileErrorUnknownFileError)LooseVersion)find_executablec C s t jd} | dkr|t j| d | d }|dkr8dgS |dkrFdgS |d krTd
gS |dkrbdgS |d
krpdgS 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)sysversionfind
ValueError)Zmsc_posZmsc_ver r /builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el9.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/_distutils/cygwinccompiler.py get_msvcr? s r c
@ sR e Zd ZdZdZdZdZdZdZdZ dZ
dd
dZdd
ZdddZ
dddZdS )CygwinCCompilerz? Handles the Cygwin port of the GNU C compiler to Windows.
cygwinz.oz.az.dllzlib%s%sz%s%sz.exer c C sH t | ||| t \}}| d||f |tk rB| d| tjdd| _ tjdd| _
d| j krt \| _| _
| _| | jd| j| j
| jf | j
dkr| j | _nd | _| j
d
krd}qd}n| j | _d}| jd
| j d| j d
| j
d| j d| j|f d d| j kr<| jdkr